Try OpenEdge Now
skip to main content
Programming Interfaces
Input/Output Processes : Colors and Fonts : Allowing the user to change colors and fonts : Establishing dynamic colors
 
Establishing dynamic colors
You can use the SYSTEM–DIALOG FONT statement to change any font in the font table. However, you can use the SYSTEM–DIALOG COLOR statement to update only those colors that are dynamic. To make a color dynamic, use the COLOR–TABLE system handle. For example:
DEFINE VARIABLE status-ok AS LOGICAL NO-UNDO.
status-ok = COLOR-TABLE:SET-DYNAMIC(n, TRUE).
In this example, n is the color table entry you want to make dynamic. For more information on the COLOR–TABLE handle, see OpenEdge Development: ABL Reference and Accessing the current color and font tables.