This property returns the control font colour encoded as 32 bit integer value, where the first byte contains Red channel, the second byte - Green channel and the third byte - Blue channel.
object.FontColor
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISControl interface |
uint
Display some information about the control, including the control font colour in HEX format.
Dim aControl
Dim aFont
Dim aControlInfo
Set aControl = Form.Controls_("btnDemo")
set aFont = aControl.Font
aControlInfo =_
"Caption: " & aControl.Caption & vbNewLine &_
"ShortName: " & aControl.ShortName & vbNewLine &_
"Font Color (BGR): #" & HEX(aControl.FontColor) & vbNewLine &_
"Font Name: " & aFont.Name & vbNewLine &_
"Font Size: " & aFont.Size
Profile.MsgBox(aControlInfo)
In Profile Client v8 on User Interface Font Color can be found in
.