BBjSystemMetrics::getScreenResolution

Description

In BBj 5.0 and higher, this BBjSystemMetrics method returns the screen resolution in dots per inch.

Syntax

Return Value

Method

int

getScreenResolution()

Parameters

None.

Return Value

Returns the screen resolution in dots per inch, typically 96 or 72.

Remarks

None.

Example

rem 'return the screen resolution in dots per inch

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 screen resolution
let myScreenResolution = mySystemMetrics!.getScreenResolution()

rem 'Report screen resolution
print "Screen resolution is",myScreenResolution," dots per inch"

See Also

BBjAPI

BBjSysGui

Object Variables

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