Release 10.1A: OpenEdge Development:
Programming Interfaces

> ## 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 6–2 shows how Progress assigns colors based on the state and category of widget.

> Table 6–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 © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095