Consultor Eletrônico



Kbase 17443: Color Phrase for 8.2 Character Client DCOLOR PFCOLOR
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Color Phrase for 8.2 Character Client DCOLOR PFCOLOR

WHY YOU NEED TO KNOW THIS:
===========================
If you are attempting to modify the color of text in your Character
Client for version 8.2x for either displays or updates this document
may be of some help.

PROCEDURAL APPROACH:
====================
Prior to executing the following code sample you will need to modify
either your registry entries for WinChar Colors or your Progress.ini
in the section titled WinChar Colors.

(What color you choose is somewhat up to you, but depending on your
choice your text may be unreadable or very difficult to read.)

If you are going to use the registry to store your color settings
you will need to modify at least one of the following Key sections:
HKEY_CURRENT_USER\Software\PSC\Progress\8.2x\WinChar Colors
HKEY_LOCAL_MACHINE\Software\PSC\Progress\8.2x\WinChar Colors

If you are going to use the Progress.ini to store your color settings
you will need to modify the progress.ini in the DLC\BIN directory.

It is a wise precaution to either record any Progress defaults you
intend to replace or to save backup copies of your Registry subkey
or Progress.ini.

Add a new listing to the registry or progress.ini.
This new listing should follow the format of colorx where x
is an integer between 0 and 255.

As a value this newly defined color can use any combination of
color pairs you choose using the color names referenced in Table 8
of the Progress Language Reference A-F under the topic Color Phrase.
Follow the color assignment with a word with which to quickly
identify the color phrase.
example:
color5 RED/BLUE "TEST"

After you have saved the new reference in either the Registry
or the Progress.ini you can make use of it within your Character
Client code by adding a WITH DCOLOR 5 to your display or update
statements.
example:
DEF VAR X as CHAR Initial "This is an example".
DISPLAY X with DCOLOR 5. /*This will use your new color for display*/
PAUSE.
UPDATE X with PFCOLOR 5. /*This will use your new color for update*/


REFERENCES TO WRITTEN DOCUMENTATION:
====================================
Table 8 Progress Language Reference A to F

Progress Software Technical Support Note # 17443