ISButton.FontColor

Description

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

Syntax

object.FontColor

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

Return Value

uint

Example

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

Version information

Added in v7.8.0