ISMemo.FontColor

Description

This property returns the font colour of the specified memo 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.FontColor

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

Return Value

uint

Example

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

Dim aMemo
Dim aFont
Dim aMemoInfo

Set aMemo = Form.Controls_("memComment")
set aFont = aMemo.Font
aMemoInfo =_
  "ShortName: " & aMemo.ShortName & vbNewLine &_
  "Font Color (BGR): #" & HEX(aMemo.FontColor) & vbNewLine &_  
  "Font Name: " & aFont.Name & vbNewLine &_
  "Font Size: " & aFont.Size 
    
Profile.MsgBox(aMemoInfo)  
Note: This macro should be executed in any event handler of the form control.

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

Version information

Added in v7.8.0