Progress
Programming
Handbook
Color and Font Inheritance
If you do not specify colors or a font for a widget, Progress assigns colors and a font using the following rules of precedence:
- Field-level widgets take the colors and font of the containing frame.
NOTE: In the environment, you can specify two default fonts but you cannot specify default widget colors.- Frame-level widgets take the default colors and fonts specified in the environment.
NOTE: On Windows, the default foreground color is color Window Text. For two-dimensional widgets, the default background color is color Window. For three-dimensional widgets, the default background color is color Button Face. These colors are configurable using the Control Panel.- Otherwise, frame-level widgets take the default colors and fonts specified for the operating system.
Note that frames do not inherit colors and fonts from the containing window. If you do not specify the font for a frame, Progress uses the default font, not the font of the window. This is because Progress determines the frame layout at compile time when the window’s colors and fonts (determined at run time) are not yet available.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |