Mixing COLOR and REVERSE attributes
I4GL ignores the COLOR
attribute when REVERSE
is used,
while Genero BDL mixes both attributes.
With IBM® Informix® 4GL, when a form field is defined with both the COLOR
and
REVERSE
attribute, the REVERSE
attribute disables any other
COLOR
attribute definition for this field.
With Genero BDL, the COLOR
and REVERSE
attributes are used
together, in order to display the background of the form field in the specified color.
For example:
DATABASE FORMONLY
SCREEN
{
[f01 ]
[f02 ]
}
END
ATTRIBUTES
f01 = FORMONLY.pkey, COLOR=RED;
f02 = FORMONLY.name, COLOR=GREEN, REVERSE;
END
MAIN
DEFINE rec RECORD
pkey INTEGER,
name VARCHAR(20)
END RECORD
OPEN FORM f1 FROM "form"
DISPLAY FORM f1
LET rec.pkey = 9999
LET rec.name = "Scott Bold"
INPUT BY NAME rec.* WITHOUT DEFAULTS
END MAIN
If the Genero BDL behavior is not welcome, remove the COLOR
attribute from the
field definition.