BBjSystemMetrics::getScreenBounds
Description
In BBj 15.0 and higher, this BBjSystemMetrics method returns the default or selected screen bounds in pixels.
Syntax
|
Return Value |
Method |
|---|---|
| Rectangle |
getScreenBounds() getScreenBounds(int screen) |
Parameters
|
Variable |
Description |
|---|---|
|
screen |
Screen number. Must be >= 0 and < BBjSystemMetrics::getScreenCount |
Return Value
Returns the screen bounds in pixels as a Rectangle object.
Remarks
In a multiple monitor environment, this method can be used to determine the positions of the secondary screens relative to the default screen.
If the WebUI browser environment provides multiscreen information, these methods report the physical dimensions of the specified screen. Multiscreen information is currently available only in a secure context (https or localhost) in Chromium-based browsers. If multiscreen information is not available, these methods report the current browser window dimensions.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.