For properties having the OLE data type "OLE_COLOR" PowerCOBOL provides COBOL constants that you can use to set the colors. There are two sets of color constants:
Constants for the 16 standard colors
Constants for the system colors
These are listed in the tables below.
Standard Color | Constant |
---|---|
Black | POW-COLOR-BLACK |
Blue | POW-COLOR-BLUE |
Cyan | POW-COLOR-CYAN |
Gray | POW-COLOR-GRAY |
Green | POW-COLOR-GREEN |
Magenta | POW-COLOR-MAGENTA |
Red | POW-COLOR-RED |
White | POW-COLOR-WHITE |
Yellow | POW-COLOR-YELLOW |
Dark blue | POW-COLOR-DARKBLUE |
Dark cyan | POW-COLOR-DARKCYAN |
Dark gray | POW-COLOR-DARKGRAY |
Dark green | POW-COLOR-DARKGREEN |
Dark magenta | POW-COLOR-DARKMAGENTA |
Dark red | POW-COLOR-DARKRED |
Dark yellow | POW-COLOR-DARKYELLOW |
Active title bar | POW-COLOR-ACTIVETITLEBAR |
Active title bar text | POW-COLOR-ACTIVETITLEBARTEXT |
Active window border | POW-COLOR-ACTIVEBORDER |
Application workspace | POW-COLOR-APPLICATIONWORKSPACE |
Button dark shadow | POW-COLOR-BUTTONDARKSHADOW |
Button highlight | POW-COLOR-BUTTONHIGHLIGHT |
Button light shadow | POW-COLOR-BUTTONLIGHTSHADOW |
Button shadow | POW-COLOR-BUTTONSHADOW |
Button surface | POW-COLOR-BUTTONFACE |
Button text | POW-COLOR-BUTTONTEXT |
Desktop | POW-COLOR-DESKTOP |
Disabled text | POW-COLOR-DISABLEDTEXT |
Highlight | POW-COLOR-HIGHLIGHT |
Highlighted text | POW-COLOR-HIGHLIGHTEDTEXT |
Inactive title bar | POW-COLOR-INACTIVETITLEBAR |
Inactive title bar text | POW-COLOR-INACTIVETITLEBARTEXT |
Inactive window border | POW-COLOR-INACTIVEBORDER |
Menu bar | POW-COLOR-MENUBAR |
Menu text | POW-COLOR-MENUTEXT |
Scroll bars | POW-COLOR-SCROLLBARS |
Tool tip background | POW-COLOR-TOOLTIP |
Tool tip text | POW-COLOR-TOOLTIPTEXT |
Window background | POW-COLOR-WINDOWBACKGROUND |
Window frame | POW-COLOR-WINDOWFRAME |
Window text | POW-COLOR-WINDOWTEXT |