Previous Next

INHERIT-FGCOLOR attribute

(Graphical interfaces only)
Indicates whether field-level widgets inherit the foreground color of their containing dialog-box or frame widget.
Data type:
Access:
Applies to:
The default value is TRUE. That is, field-level widgets inherit the foreground color of the containing dialog-box or frame widget, by default.
When set to FALSE for a dialog-box or frame widget, the following field-level widgets will not inherit the foreground color of their containing widget: BROWSE, COMBO-BOX (all types), EDITOR, FILL-IN (NATIVE and Enabled), and SELECTION-LIST.
You must set this attribute before realizing the dialog-box or frame widgets.
For static dialog-box and frame widgets, you can also change the default foreground color inheritance on a frame-by-frame basis by specifying the INHERIT-FGCOLOR option in the Frame phrase when you define the widget.
You can also set this attribute to FALSE on the SESSION system handle to change the default foreground color inheritance for all dialog-box and frame widgets in the session. Setting this attribute affects dialog-box and frame widgets created only after the attribute is set; it does not affect existing widgets.
Note:
Setting the FGCOLOR attribute for a field-level widget within the dialog-box or frame overrides any INHERIT-FGCOLOR attribute or option settings.
See also:

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.