Please enable JavaScript to view this site.

ESL Documentation

Action Statement

Change the background or foreground color of keys, regions, dialog boxes, and dialog controls.

For Keys:

make {KEY_NAME|KEY_CLASS_NAME} [foreground] [color] COLOR

For Regions and Controls:

make {OBJECT_NAME|CLASS_NAME} [background|foreground] [color] COLOR

For Dialog Regions and Boxes:

make {DIALOG_NAME|DIALOG_CLASS_NAME} [background] [color] COLOR

 

KEY_NAME

The identifier for a key.

KEY_CLASS_NAME

The identifier for a class of keys.

OBJECT_NAME

The identifier for a graphical region, image region, textual region, table, or dialog control.

CLASS_NAME

The identifier for a class of keys, graphical regions, image regions, controls, or textual regions.

DIALOG_NAME

The identifier for a dialog region or dialog box.

DIALOG_CLASS_NAME

The identifier for a class of dialog boxes or dialog regions.

color COLOR

A string value, integer value, or color keyword representing an ESL color.

Description

Use this statement to perform any of the following:

To change the foreground color of keys.

To change the foreground or background color of graphical regions, image regions, or textual regions.

To change the foreground or background color of dialog controls (including tables).

By default, this statement changes the foreground of a key and the background of a graphical region, image region, textual region, or dialog control.

Changing the foreground of a graphical object changes the default color of the object's drawing statements, but it does not override the explicit colors specified within the drawing statements.

Example

 

response to Ocean

 make object aqua

 

response to Crustacean

 make Lobster in Seafood color ColorChoice

See Also

color Keyword

make border COLOR Action Statement