BBjSystemMetrics::getScreenCount

Description

In BBj 15.0 and higher, this BBjSystemMetrics method returns the number of screen devices on the client.

Syntax

Return Value

Method

int

getScreenCount()

Parameters

None.

Return Value

Returns the number of screen devices on the client.

Remarks

In BUI, this method always returns 1.

WebUI logo If the WebUI browser environment provides multiscreen information, this method reports the number of physical screens. Multiscreen information is currently available only in a secure context (https or localhost) in Chromium-based browsers. If multiscreen information is not available, this method reports 1 plus the current number of undocked WebUI windows.

Example

rem ' BBjSystemMetrics::getScreenCount

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
metrics! = sysgui!.getSystemMetrics()
print "Default:"
print "getScreenResolution:",metrics!.getScreenResolution()," DPI"
print "getScreenSize: ",metrics!.getScreenSize()
print "getScreenBounds: ",metrics!.getScreenBounds()
print "getScreenInsets: ",metrics!.getScreenInsets()
screens = metrics!.getScreenCount()
for screen = 0 to screens-1
    print ""
    print "Screen",screen,":"
    print "getScreenSize",screen,": ",metrics!.getScreenSize(screen)
    print "getScreenBounds",screen,": ",metrics!.getScreenBounds(screen)
    print "getScreenInsets",screen,": ",metrics!.getScreenInsets(screen)
next screen

See Also

BBjAPI

BBjSysGui

Object Variables

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