BBjSystemMetrics::getSystemFontHeight

Description

In BBj 5.0 and higher, this BBjSystemMetrics method returns the current system font height in pixels.

Syntax

Return Value

Method

float

getSystemFontHeight()

Parameters

None.

Return Value

Returns the current system font height in pixels.

Remarks

None.

Example

rem 'return system font height in pixels

rem 'Obtain the instance of the BBjAPI object
let myAPI! = BBjAPI()

rem 'Open the SysGui device
SYSGUI = UNT
OPEN (SYSGUI)"X0"

rem 'Obtain the instance of the BBjSysGui object
let mySysGui! = myAPI!.getSysGui()

rem 'Obtain the instance of the BBjSystemMetrics Object
let mySystemMetrics! = mySysGui!.getSystemMetrics()

rem 'Get system font height
let mySystemFontHeight = mySystemMetrics!.getSystemFontHeight()
PRINT "The system font height is",mySystemFontHeight," pixels"

See Also

BBjAPI

BBjSysGui

Object Variables

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.