Go to Glossary Search VisualAge C++ Help Go to VisualAge C++ Help Home Page Go to WWW VisualAge C++ Site

Color palette

Use this dialog box to modify the color palette used by the Editor. When you open the Color Palette dialog box, it displays the color palette currently in use. You can use the controls in this dialog box to change any of the colors in the color palette.

Changes to the color palette are applied to all files open in the Editor, and are saved between editing sessions. You can also name and save a color palette to a file. Controls found in this dialog box are listed below:

Palettes displays the name of the color palette in effect. To use a different color palette in the Editor, click on the Palette field down-arrow to open a selection list showing all palettes available to the Editor. Select a palette from the list and click the OK button. The palette you choose is applied to all files open in the Editor.

If you make a change to one or more color settings, the Palette field becomes blank, and the Add button is enabled. You can save the new color palette by clicking the Add button. The current color palette is saved between Editor sessions even if you have not explicitly saved it to a palette name.

Color Buttons represent the current color values of the Editor's sixteen color palette. You can change the colors of display text by changing the values set in the Red, Green, and Blue fields.
Red, Green, Blue selections allow you to vary the RGB (Red/Green/Blue) color components of a color. You can use the up and down-arrow buttons to change the RGB settings, or you can type the numbers directly into the fields.

Valid values range from 0 to 255, where the value represents the intensity of the chosen color component. For example, the color black has RGB component values of 0, 0, and 0. The color white has RGB component values of 255, 255, and 255, while a bright red color has RGB component values of 255, 0, and 0.

Add, Delete allows you to delete the current color palette by clicking the Delete button. You can save a new color palette by clicking the Add button and specifying a palette name in the resulting Add a palette dialog box.
Notes:
  1. If you enter a palette name that already exists, two entries using the same name will appear in the Palettes selection list.
  2. All color palettes are defined in a file called palettes.
    This file is found in the /usr/vatools/macros directory.
    This file is found in the product_installation\macros directory.
OK applies changes you have made in this dialog box and returns you to the Editor.
Undo any changes you have made, and the previous color palette will be restored
Cancel closes this dialog box without applying any changes to the color palette, and returns you to the Editor.