Progress
Programming
Handbook
Changing Resource Definitions
The GET–KEY–VALUE statement can read and the PUT–KEY–VALUE statement can change the definition of any environment resource, including the definitions of colors and fonts stored in the current environment. However, these statements by themselves do not affect the current Progress environment and its color and font tables. To have any definitions that are created using the PUT–KEY–VALUE statement take effect, you must replace the current environment by reloading the current environment (see the "Managing Application Environments" section).
Portable Color and Font Definitions
The portable and most effective way to change color and font definitions is to first change the definitions in the color and font tables, then use the PUT–KEY–VALUE statement to write the new definitions from the modified tables. You can affect the color and font tables in the current environment using the COLOR–TABLE and FONT–TABLE handles (see the "Accessing the Current Color and Font Tables" section), and you can allow the user to affect the current color and font tables using the SYSTEM–DIALOG COLOR and SYSTEM–DIALOG FONT statements (see the "Allowing the User to Change Colors and Fonts" section).
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |