BBjSystemMetrics::getSystemColor

Description

In BBj 5.0 and higher, this BBjSystemMetrics method returns the system color for a specified part of the GUI.

Syntax

Return Value

Method

BBjColor

getSystemColor(int colorCode)

Parameters

Variable

Description

colorCode

One of the color codes listed under BBjSystemMetrics Constants.

Return Value

Returns the current system color corresponding to the specified color code.

Remarks

System color codes were originally defined for Get Default System Colors - SENDMSG Function 1.

Example

rem ' BBjSystemMetrics::getSystemColor

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
metrics! = sysgui!.getSystemMetrics()
while 1
    dread colorCode,colorName$,end=*break
    color! = metrics!.getSystemColor(colorCode)
    print colorName$,colorCode," = ",color!
wend
stop
data BBjSystemMetrics.DKSHADOW3D,"DKSHADOW3D"
data BBjSystemMetrics.FACE3D,"FACE3D"
data BBjSystemMetrics.HIGHLIGHT3D,"HIGHLIGHT3D"
data BBjSystemMetrics.LIGHT3D,"LIGHT3D"
data BBjSystemMetrics.SHADOW3D,"SHADOW3D"
data BBjSystemMetrics.ACTIVEBORDER,"ACTIVEBORDER"
data BBjSystemMetrics.ACTIVECAPTION,"ACTIVECAPTION"
data BBjSystemMetrics.APPWORKSPACE,"APPWORKSPACE"
data BBjSystemMetrics.DESKTOP,"DESKTOP"
data BBjSystemMetrics.BTNTEXT,"BTNTEXT"
data BBjSystemMetrics.CAPTIONTEXT,"CAPTIONTEXT"
data BBjSystemMetrics.GRAYTEXT,"GRAYTEXT"
data BBjSystemMetrics.HIGHLIGHT,"HIGHLIGHT"
data BBjSystemMetrics.HIGHLIGHTEXT,"HIGHLIGHTTEXT"
data BBjSystemMetrics.INACTIVEBORDER,"INACTIVEBORDER"
data BBjSystemMetrics.INACTIVECAPTION,"INACTIVECAPTION"
data BBjSystemMetrics.INACTIVECAPTIONTEXT,"INACTIVECAPTIONTEXT"
data BBjSystemMetrics.INFOBK,"INFOBK"
data BBjSystemMetrics.INFOTEXT,"INFOTEXT"
data BBjSystemMetrics.MENU,"MENU"
data BBjSystemMetrics.MENUTEXT,"MENUTEXT"
data BBjSystemMetrics.SCROLLBAR,"SCROLLBAR"
data BBjSystemMetrics.WINDOW,"WINDOW"
data BBjSystemMetrics.WINDOWFRAME,"WINDOWFRAME"
data BBjSystemMetrics.WINDOWTEXT,"WINDOWTEXT"

See Also

BBjAPI

BBjSysGui

Object Variables

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