ISButton.Color

Description

The property is accessible in the Object Inspector but has no effect for buttons.

Syntax

object.Color

Part Attribute Type Description
object Required
The object always implements the ISButton interface

Return Value

uint

Example

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)  
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0