You can set font properties of components in the code editor.
Fonts have the following properties that can be manipulated in the Form Designer and Report Designer code editors:
Bold |
Set this property to True to show the font in bold. For example: lLabel1.Font.Bold = True |
Color |
To set the colour of a component, you can either use colorbyname, or ColorRGB. For example, to change the font colour of a component, you could use one of these code examples: eEdit1.Font.Color = colorbyname("Blue") lLabel1.font.color = ColorRGB(64, 224, 208) |
FontColor |
You can set the colour of a font by setting this to a colour hex RGB string value. See the Color Table for hex RGB values. For example, to set the font of a label to blue, use: lLabel1.Font.FontColor = "#0000FF" |
Italic
|
Set this property to True to show the font in italic. For example: lLabel1.Font.Italic = True |
Name |
Set the name of the font. For example: lLabel1.Font.Name = "Courier" |
Size |
Set the font size. For example: lLabel1.Font.height = -16 |
Strikeout |
Set this property to True to show the font with a strikeout. For example: lLabel1.Font.Strikeout = True |
Underline |
Set this property to True to show the font underlined. For example: lLabel1.Font.Underline = True |