PreviousNextIndex

DCOLOR attribute


(Character Interfaces only)

The color number for the display color of the widget in character mode. This attribute is ignored in graphical interfaces.

Data type: INTEGER

Access: Readable/Writeable

Applies to: BROWSE widget (browse, column, and cell), BUTTON widget, COMBO-BOX widget, DIALOG-BOX widget, EDITOR widget, FILL-IN widget, FRAME widget, LITERAL widget, MENU widget, MENU-ITEM widget, RADIO-SET widget, RECTANGLE widget, SELECTION-LIST widget, SLIDER widget, SUB-MENU widget, TEXT widget, TOGGLE-BOX widget, WINDOW widget

For browse widgets, it is readable only. For a browse cell, it 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.

For rectangles, DCOLOR specifies the fill color. In windows, DCOLOR specifies the color inherited by the menu bar, if the menu bar has no color specified.

The color number represents an entry in the color table maintained by the COLOR-TABLE handle.

You can now change the color of the background of menu frames (including menubars, submenus and pop-up menus) using the DCOLOR attribute. Previously, specifying the DCOLOR attribute for menus only changed the default color for menu items. Now, the DCOLOR attribute will be applied to the menu frame also. Note that no syntax changes were made. You can still specify the DCOLOR attribute for individual menu items.

For more information on widget color, see the PFCOLOR attribute.


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex