BBjSystemMetrics::getScreenInsets

Description

In BBj 5.0 and higher, this BBjSystemMetrics method returns the screen insets in pixels.

In BBj 15.0 and higher, the method taking an integer parameter returns the selected screen insets in pixels. The screen insets indicate how much of the overall screen dimensions to the top, bottom, left, and right the operating system reserved and are therefore unavailable for use.

Syntax

Return Value

Method

java.awt.Insets

getScreenInsets()

java.awt.Insets

getScreenInsets(int screen)

Parameters

Variable

Description

screen

Screen number. Must be >= 0 and < BBjSystemMetrics::getScreenCount

Return Value

Returns the screen insets in pixels as a java.awt.Insets object.

Remarks

None.

Example

rem ' BBjSystemMetrics::getScreenInsets

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.