The property is accessible in the Object Inspector but has no effect for buttons.
object.Color
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISButton interface |
uint
Dim aButton
Dim aControlInfo
Set aButton = Form.Controls_("btnDemo")
aControlInfo =_
"Caption: " & aButton.Caption & vbNewLine &_
"ShortName: " & aButton.ShortName & vbNewLine &_
"TypeName: " & aButton.TypeName & vbNewLine &_
"Color (BGR): #" & HEX(aButton.Color)
Profile.MsgBox(aControlInfo)