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

getSystemMetrics()

Methods of BBjSystemMetrics

Return Value

Method

BBjNumber

getDevicePixelRatio()

BBjNumber

getDevicePixelRatio(int screen)

int

getDisplayType()

BBjVector

getFontFamilies()

java.awt.Rectangle

getScreenBounds()

java.awt.Rectangle

getScreenBounds(int screen)

int

getScreenCount()

BBjImage

getScreenImage()

BBjImage

getScreenImage(int x, int y, int width, int height)

java.awt.Insets

getScreenInsets()

java.awt.Insets

getScreenInsets(int screen)

int

getScreenNumber(BBjControl control)

int

getScreenResolution()

java.awt.Dimension

getScreenSize()

java.awt.Dimension

getScreenSize(int screen)

BBjColor

getSystemColor(int colorCode)

float

getSystemFontHeight()

float

getSystemFontWidth()

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

REM Obtain the instance of the BBjSystemMetrics object

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()

See Also

BBjAPI

BBjSysGui

BBj Object Variables

BBj Object Assignment

BBj Object Error Handling

BBj Object Operators

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