Description
Returns/sets the text font displayed in the color button.
Usage
[form.][control.]CaptionFont[ = Font]
Data Type
Font
Default
System default font
Remarks
This property sets color button caption font, it dependences on Caption property.
See also Caption property.
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
Sample
Set ColorPicker1. CaptionFont.Name = "Arial"
Set ColorPicker1. CaptionFont.Bold = FALSE
Set ColorPicker1. CaptionFont.Italic = TRUE
Set ColorPicker1. CaptionFont.Strikethrough = FALSE
Set ColorPicker1. CaptionFont.Underline = FALSE
Set ColorPicker1. CaptionFont.Weight = 400
Set ColorPicker1. CaptionFont.Charset = 0
Set ColorPicker1. CaptionFont.Size = 8.25