Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : BGCOLOR attribute
 

BGCOLOR attribute

(Graphical interfaces only)
Specifies the color number for the background color of the widget.
Data type: INTEGER
Access: Readable/Writeable
Applies to: BROWSE widget (browse, column, and cell), COMBO-BOX widget, CONTROL-FRAME widget, DIALOG-BOX widget, EDITOR widget, FILL-IN widget, FRAME widget, IMAGE widget, LITERAL widget, RADIO-SET widget, RECTANGLE widget, SELECTION-LIST widget, SLIDER widget, TEXT widget, TOGGLE-BOX widget, WINDOW widget
The color number represents an entry in the color table maintained by the COLOR-TABLE handle.
For a rectangle, if the FILLED attribute is TRUE, BGCOLOR specifies the color of the region inside the border of the rectangle.
For a browse cell, BGCOLOR specifies the color of a specific cell in the view port. You can set this color only as the cell appears in the view port during a ROW-DISPLAY event.
You cannot set this attribute for a BUTTON widget.
Setting the BGCOLOR attribute for any of the following field-level widgets within a dialog-box or frame overrides any INHERIT-BGCOLOR attribute or option settings: BROWSE, COMBO-BOX (all types), EDITOR, FILL-IN (NATIVE and Enabled), and SELECTION-LIST.

See also

FGCOLOR attribute, Frame phrase, INHERIT-BGCOLOR attribute