Color

Type

Text

The Color switch specifies color of various parts of the PWB display.

Syntax

Color:name value

name

Identifies the part of PWB affected by the color value.

value

Two hexadecimal digits specifying the foreground and background color of the indicated item.

Color Names

PWB uses the following color names and default color values for the various parts of the PWB display:

Table R.13 PWB Color Names

Name Default Value Description

Alert 70 Message box
Background 07 (Not visible)
Border 07 Window borders
Builderr 40 Build message line in active window
Buttondown 07 Button while it is down
Desktop 80 Desktop
Dialogaccel 7F Dialog box accelerator
Dialogaccelbor 7F Dialog box accelerator border
Dialogbox 70 Dialog box
Disabled 78 Disabled items in menus and dialogs
Elevator 07 Scroll box
Enabled 70 Available items in menus and dialogs
Greyed 78 (Not visible)
Helpbold* 8F Bold Help text
Helpitalic* 8A Italic Help text and the characters
Helpnorm* 87 Plain Help text
Helpunderline* 8C Emphasized Help text
Helpwarning* 70 Current hyperlink
Highlight 1F Highlighted text; text found by searches
Hilitectrl 07 Highlighted control item
Info 3F Special information
Itemhilitesel 0F Highlighted character in selected item
Listbox 70 List box within a dialog box
Location 70 Location indicator in status bar
Menu 70 Menu bar
Menubox 70 Menu
Menuhilite 7F Highlighted character in menu
Menuhilitesel 0F Highlighted character in selected menu
Menuselected 07 Selected menu
Message 70 Message area of status bar
Pushbutton 70 Button that is not pressed
Pwbwindowborder 07 PWB window borders
Pwbwindowtext 87 PWB window text
Scratch 07 (Not visible)
Scrollbar 70 Gray area and arrows in scroll bar
Selection 71 Current selection
Shadow 08 Shadows
Status 7F Indicator area of status bar
Text 17 Text in a window

* Defined by the Help extension. Define these settings in the [PWB-PWBHELP] section of TOOLS.INI.

Color Values

Color values for the Color switch are two hexadecimal digits that specify the color of the item. The first digit specifies the background color and the second digit specifies the foreground color, according to the following table:

Table R.14 PWB Color Values

Color Digit Color Digit

Black 0 Dark Gray 8
Blue 1 Bright Blue 9
Green 2 Bright Green A
Cyan 3 Bright Cyan B
Red 4 Bright Red C
Magenta 5 Bright Magenta D
Brown 6 Yellow E
White 7 Bright White F

For example, a setting of 3E displays a cyan background (3) and a yellow foreground (E).

Note that only color displays support all the colors listed. If you have a monochrome adapter or monochrome monitor, the only available colors are black (0), white (7), and bright white (F). All other colors are displayed as white.