ISLabel.Color

Description

This property returns the colour of the specified label control encoded as 32 bit integer value, where the first byte contains Red channel, the second byte - Green channel and the third byte - Blue channel.

Syntax

object.Color

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

Return Value

uint

Example

Display some information about the specified label control, including its colour in HEX format.

Dim aLabel
Dim aLabelInfo

Set aLabel = Form.Controls_("Label1")
aLabelInfo =_
  "Type Name: " & aLabel.TypeName & vbNewLine &_ 
  "ShortName: " & aLabel.ShortName & vbNewLine &_
  "Color (BGR): #" & HEX(aLabel.Color) 
  
Profile.MsgBox(aLabelInfo) 
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Color can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the label control in the controls tree > Color.

Version information

Added in v7.8.0