CustomFont Property
Description
Sets the font to be used to display the control palette popup window custom color item caption. You can also set the effects (bold, italic, underline, strikeout) and size for the selected font.
Usage
Set [form.][control.]CustomFont[ = Font ]
Data Type
Font
Default
System default font
Remarks
Font data structure defines the attributes of a font:
Type Font
Name as String
Bold as Boolean
Italic as Boolean
Strikethrough as Boolean
Underline as Boolean
Weight as Integer
Charset as Integer
Size as Currency
End Type
This property dependences on EnableCustomItem property, See also EnableCustomItem property.
Sample
Set ColorPicker1.CustomFont.Name = "Arial"
Set ColorPicker1.CustomFont.Bold = FALSE
Set ColorPicker1.CustomFont.Italic = TRUE
Set ColorPicker1.CustomFont.Strikethrough = FALSE
Set ColorPicker1.CustomFont.Underline = FALSE
Set ColorPicker1.CustomFont.Weight = 400
Set ColorPicker1.CustomFont.Charset = 0
Set ColorPicker1.CustomFont.Size = 8.25