Re: Set the background color of the text

Posted by webmaster Guido on February 07, 2005

In Reply to: Set the background color of the text posted by marg on January 08, 2005

: Hi! I have a problem how to set the back ground color of the text.

For a Delphi Label, at design time:
set the Color property to a value that you choose from the dropdown listbox in the Object Inspector.

For a Delphi Label, at runtime:
Label.Color := SomeColor;
Example:
Label1.Color := clWhite;

Note that this will not change the color of the text, that is set with property Label.Font.Color.


[ Delphi Forum and Tutorials ]