Demonstrates how to use CheckBox in Delphi

Demonstrates how to use CheckBox in Delphi

Demonstrates how to use CheckBox in Delphi

Demonstrates how to use CheckBox in Delphi

DownloadDownload This Tutorials

Bookmark:

Demonstrates how to use CheckBox in Delphi

This example demonstrates how to use CheckBox in Delphi.

demonstrates how to use CheckBox in Delphi

Update button - on click event.

01procedure TForm1.Button1Click(Sender: TObject);
02begin
03      { Clear previous font style, this step is not necessary }
04      Panel1.Font.Style:=[];
05 
06      { Check for Bold option }
07      if CheckBox1.Checked Then
08           Panel1.Font.Style:=Panel1.Font.Style+[fsBold]
09      Else
10           Panel1.Font.Style:=Panel1.Font.Style-[fsBold];
11      { Check for Italic option } 
12 
13      if CheckBox2.Checked Then
14           Panel1.Font.Style:=Panel1.Font.Style+[fsItalic]
15       Else
16           Panel1.Font.Style:=Panel1.Font.Style-[fsItalic];
17       { Check fro underline option }
18 
19       if CheckBox3.Checked Then
20           Panel1.Font.Style:=Panel1.Font.Style+[fsUnderline]
21       Else
22           Panel1.Font.Style:=Panel1.Font.Style-[fsUnderline];
23end;

Download This Delphi Tutorials.

Download materials for this article (Delphi - Tutorials)

Download - CheckBox.zipCheckBox.zip
       File size: 4 KB, File type: zip
       Total downloads: 516, Upload date: February 02 - 2009

andy :: May 27-2010 :: 05:42 AM

can u tell me how to use itu for link to other form?

Leave a comment

 Poster Information 


(will not be published, required)

 MESSAGE DETAILS