COLOR attribute
The COLOR
attribute defines the foreground color
of the text displayed by a form element.
Syntax
COLOR = color-spec
- color-spec can be:
BLACK
,BLUE
,CYAN
,GREEN
,MAGENTA
,RED
,WHITE
, andYELLOW
. - color-spec can also be one of:
REVERSE
,LEFT
,BLINK
, andUNDERLINE
, and it can be combined with a color name (COLOR = RED REVERSE
).
Usage
The COLOR
attribute defines the logical color of a value displayed in a
field.
The fglform compiler ignores
COLOR=WHITE
and COLOR=BLACK
: These colors can be specified in the
.per file, but will not be written in the .42f file.
Tip: In GUI mode, for more precise decoration options, use presentation styles.
A color name like RED
, BLUE
can be combined
with an secondary keyword that must be one of: REVERSE
, LEFT
,
BLINK
, and UNDERLINE
. The secondary keyword can also be used
without a color name.
Note: For backward compatibility, the color can be specified as a number:
0=WHITE, 1=YELLOW, 2=MAGENTA, 3=RED, 4=CYAN, 5=GREEN, 6=BLUE, 7=BLACK
. Note that
fglform ignores COLOR=0
or COLOR=7
: like
COLOR=WHITE
and COLOR=BLACK
.Example
EDIT f001 = customer.name, COLOR = RED;