Re: Display different fonts & colors in Delphi label

Posted by Jenny on July 08, 2005

In Reply to: How to Display different fonts & colors in Delphi label posted by Sivakumar on June 22, 2005

: I would like to display various fonts and color in Delphi label components.

To change the appearance of a Delphi TLabel component in code, change its Font properties. The following example will set Label1 in Times New Roman, 12 point, blue:

Label1.Font.Name := 'Times New Roman';
Label1.Font.Size := 12;
Label1.Font.Color := clBlue;       

Cheers!
Jenny