BBjSystemMetrics::getSystemFontWidth

Description

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

Syntax

Return Value

Method

float

getSystemFontWidth()

Parameters

None.

Return Value

Returns the current system font width in pixels.

Remarks

None.

Example

rem 'return system font width 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 width
let mySystemFontWidth = mySystemMetrics!.getSystemFontWidth()
PRINT "The system font width is",mySystemFontWidth," pixels"

See Also

BBjAPI

BBjSysGui

Object Variables

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