SETGCOLOR

Purpose:

Dynamically sets a global color parameter.

Syntax:

SETGCOLOR(param, color)

param

-

An integer. Corresponds to the color-related parameters in the file dspcolor.

color

-

An integer, any pre-defined macro name or integer for a supported color.

Example:

setgcolor(17, red)

 

sets the 17th parameter (the Window Color) in dspcolor to RED. To see the change, use REDRAWALL.

Remarks:

See the dspcolor file for details on the supported global colors. For example,

 

view dspcolor

 

See DEFCOLOR to dynamically define a new color.

See Also:

DEFCOLOR

dspcolor file

GETGCOLOR

REDRAWALL

SETCOLORMAP

WEBCOLORS