Widget states and color
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Widget states and color
Frames, dialog boxes, and rectangles use only DCOLOR.
For all other widgets, ABL 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.
The following table shows how ABL assigns colors based on the state and category of widget.
| 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.