Progress
Programming
Handbook


Widget States and Color

Frames, dialog boxes, and rectangles use only DCOLOR. For all other widgets, Progress considers the widget’s category and its state to determine when to use the display colors (DCOLOR) and when to use the prompt-for colors (PFCOLOR). The categories are text input widgets (fill-ins and editors) and selectable widgets (all other widgets). The widget states are insensitive, sensitive, and focus.

Table 23–2 shows how Progress assigns colors based on the state and category of widget.

Table 23–2: Colors Used in Character Interfaces 
Widget State
Text Input Widget
Selectable Widget
Insensitive
DCOLOR
DCOLOR
Sensitive
PFCOLOR
DCOLOR
Focus
PFCOLOR
PFCOLOR

Note that for repaint, look, and usability reasons, text input widgets have the same colors for the sensitive and focus states but different colors for the insensitive state. This is in contrast to selectable widgets, which must change colors when they receive focus.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095