ISComboBox.Font

Description

The font of the specified combo box.

Syntax

object.Font

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

Return Value

StdFont

Example

Display some information about the specified combo box, including its font name and font size.

Dim aControl
Dim aFont
Dim aControlInfo

Set aControl = Form.Controls_("cmbInform")
set aFont = aControl.Font 

aControlInfo =_
  "Caption: " & aControl.Caption & vbNewLine &_ 
  "ShortName: " & aControl.ShortName & vbNewLine &_
  "TypeName: " & aControl.TypeName & 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.

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

Version information

Added in v7.8.0