Syntax for setting the style BOLD of a label
Hi, how do you conditionally format the font style for a label? EG, I want
to set the font to BOLD when certain conditions are met.
You can use: Label2.Font.Color:= clRed, for example to set the colour, but
I cannot find the correct syntax for setting the style. Have tried
Label2.Font.Style:= fsBold, but this is incorrect. Any help would be
appreciated, thanks.
to set the font to BOLD when certain conditions are met.
You can use: Label2.Font.Color:= clRed, for example to set the colour, but
I cannot find the correct syntax for setting the style. Have tried
Label2.Font.Style:= fsBold, but this is incorrect. Any help would be
appreciated, thanks.
This discussion has been closed.
Comments
Since RAP does not support Set types, we added properties to allow you to
set these values. See the RAP FAQ in the RAP Reference for more
information.
Label2.Font.Bold := True;
Label2.Font.Italic := True;
... etc.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com