<<

Contents

Search

>>

 

FIELD_COLOR

 

 

Instruction

 

 

Syntax:

FIELD_COLOR(<Mask Field>[,<Handle>]) = <Foreground Red>,<Foreground Green>,<Foreground Blue>,<Background Red>,<Background Green>,<Background Blue>

 

<Mask Field>

= <MASK FIELD>

<Handle>

= <NUM-EXPRESSION>

<Foreground Red>

= <NUM-EXPRESSION>

<Foreground Green>

= <NUM-EXPRESSION>

<Foreground Blue>

= <NUM-EXPRESSION>

<Background Red>

= <NUM-EXPRESSION>

<Background Green>

= <NUM-EXPRESSION>

<Background Blue>

= <NUM-EXPRESSION>

 

 

Meaning:

Specifies the foreground and the background color of a mask field.

 

<Handle> specifies the window that contains the mask field. <Handle> can contain the window depth or the handle of a split window or a WINDOWCALL window. If the parameter <Handle> is missing, the mask field must be on the current mask.

 

<Foreground Red>,<Foreground Green>,<Foreground Blue> specifies the Foreground color.

 

<Background Red>,<Background Green>,<Background Blue> specifies the Background color.

 

If <Foreground Red> < 0 or <Foreground Green> < 0 or <Foreground Blue> < 0, the standard foreground color applies.

 

If <Background Red> < 0 or <Background Green> < 0 or <Background Blue> < 0, the standard background color applies.

 

Parameter:

Mask Field

Mask field

Handle

Window depth or handle of a split window or handle of a WINDOWCALL Window

Foreground Red

Red value

Foreground Green

Green value

Foreground Blue

Blue value

Background Red

Red value

Background Green

Green value

Background Blue

Blue value

 

Sample:

/* red text on white background

FIELD_COLOR(#5.#NUMBER) = 255,0,0,255,255,255

 

See also:

FIELD_TEXTCOLOR

FIELD_BACKGROUNDCOLOR