Progress
Programming
Handbook


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 © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095