Colors section
- Last Updated: March 30, 2020
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
The Colors section of the progress.ini file contains options that specify the colors that make up the color table for use with graphical user interface clients. Although there are 16 preset colors available to an application for use as either foreground or background colors, you can specify up to 256 colors.
Each entry in the Colors section performs two semantic functions: it defines a color, and it maps that color to an integer in the range 0 to 255. An application specifies this integer when making a color assignment to a widget.
Specify a color entry using the following syntax:
Syntax
|
- n
-
An integer from 0 to 255 that specifies the color table entry.
- R
-
An integer that specifies the amount of red present in the color.
- G
-
An integer that specifies the amount of green present in the color.
- B
-
An integer that specifies the amount of blue present in the color.
- colorname
-
Any of the following color names, mapped to the colors defined in the Windows Control Panel. For example:
COLOR-SCROLLBAR COLOR-BACKGROUND COLOR-ACTIVECAPTION COLOR-INACTIVECAPTION COLOR-INACTIVECAPTIONTEXT COLOR-MENU COLOR-WINDOW COLOR-WINDOWFRAME COLOR-MENUTEXT COLOR-WINDOWTEXT COLOR-CAPTIONTEXT COLOR-ACTIVEBORDER COLOR-INACTIVEBORDER COLOR-APPWORKSPACE COLOR-HIGHLIGHT COLOR-HIGHLIGHTTEXT COLOR-BTNFACE COLOR-BTNHIGHLIGHT COLOR-BTNSHADOW COLOR-GRAYTEXT COLOR-BTNTEXTAny entries you add to the color table must be sequential. For example, since the installed progress.ini file defines color0 to color15, the next color you add must be color16. If you add an entry for color17, OpenEdge ignores it if color16 is undefined.
For backward compatibility, color0 to color15, as installed, are the same as the colors supported in Version 6. See the topics about colors and fonts in OpenEdge Programming Interfaces for a listing of these colors.
For backward compatibility, the progress.ini file specifies the following color pairs for Version 6 applications:
-
NORMALspecifies the colors for fill-ins that do not have input focus. -
INPUTspecifies the colors for fill-ins that have input focus. -
MESSAGESspecifies the colors for the message area.
NORMAL,INPUT, andMESSAGESeach take a pair of integer values from 0 to 255. The integers represent color table entries. For example, in the default progress.ini file,NORMALis defined as foreground equal to color table entry 0 (RGB value 0,0,0) and background equal to color table entry 15 (RGB value 255,255,255).The following example shows how to redefine
NORMALas foreground equal to color table entry 3 and background equal to color table entry 12:NORMAL=3,12 -