Release 10.1A: OpenEdge Development:
Programming Interfaces

> ## Managing colors and fonts in graphical applications

> Graphical interfaces provide a variety of techniques to help manage color and font definitions for an application. Using these techniques, Progress allows a graphical application to manage colors and fonts at four levels of run-time operation:

> 1. User Access to the Color and Font Tables — Allowing the user to change the definitions for current dynamic color and font table entries using the `SYSTEM–DIALOG COLOR` and `SYSTEM–DIALOG FONT` statements. For more information, see the "Allowing the user to change colors and fonts" section.

> 2. Procedure Access to the Color and Font Tables — Examining and changing the definitions for color table entries in the current environment using the `COLOR–TABLE` handle, and examining height and width characteristics of font table entries in the current environment using the `FONT–TABLE` handle. Also, this section addresses setting the definition for arbitrary colors using the `RGB–VALUE` function. For more information, see the "Accessing the current color and font tables" section.

> 3. Procedure Access to Color and Font Definitions — Reading and writing color and font definitions for the current environment using the `GET–KEY–VALUE` and `PUT–KEY–VALUE` statements. For more information, see the "Retrieving and changing color and font definitions" section.

> 4. Procedure Replacement of the Current Environment — Replacing the application’s current color and font tables with tables from a different environment using the `LOAD`, `USE`, and `UNLOAD` statements. For more information, see the "Managing application environments" section.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095