BBjSystemMetrics
Description
In BBj 5.0 and higher, the BBjSystemMetrics object provides information about the client display.
Creation
BBjAPI > BBjSysGui > BBjSystemMetrics
A BBjSystemMetrics object is accessed using the following BBjSysGui method:
Return Value |
Method |
---|---|
BBjSystemMetrics |
Methods of BBjSystemMetrics
Return Value |
Method |
---|---|
getDevicePixelRatio(int screen) |
|
int |
|
getScreenBounds(int screen) |
|
int |
|
getScreenImage(int x, int y, int width, int height) |
|
getScreenInsets(int screen) |
|
int |
getScreenNumber(BBjControl control) |
int |
|
getScreenSize(int screen) |
|
getSystemColor(int colorCode) |
|
float |
|
float |
Remarks
None.
Constants
0 |
MONOCHROME |
1 |
GRAYSCALE_16 |
2 |
GRAYSCALE_256 |
3 |
COLOR_16 |
4 |
COLOR_256 |
5 |
COLOR_MORE |
1 |
DKSHADOW3D |
2 |
FACE3D |
3 |
HIGHLIGHT3D |
4 |
LIGHT3D |
5 |
SHADOW3D |
6 |
ACTIVEBORDER |
7 |
ACTIVECAPTION |
8 |
APPWORKSPACE |
9 |
DESKTOP |
10 |
BTNTEXT |
11 |
CAPTIONTEXT |
12 |
GRAYTEXT |
13 |
HIGHLIGHT |
14 |
HIGHLIGHTEXT |
15 |
INACTIVEBORDER |
16 |
INACTIVECAPTION |
17 |
INACTIVECAPTIONTEXT |
18 |
INFOBK |
19 |
INFOTEXT |
20 |
MENU |
21 |
MENUTEXT |
22 |
SCROLLBAR |
23 |
WINDOW |
24 |
WINDOWFRAME |
25 |
WINDOWTEXT |
Example
|
See Also
BBj Object Creation and Assignment
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.