ECN-4748 ACTIVE_BACKGROUND property for entry fields

Defect Number: 59187

Product: ACUCOBOL-GT

Modules: Runtime

Machines Affected: All

DESCRIPTION:

The ACTIVE_BACKGROUND special property for the Entry Field control enables you to change the active entry field background color by setting it to a value that represents the new color as follows.

ACTIVE_BACKGROUND = color-value

Where color-value is a number from 1 to 16 inclusive, and that is also defined in your acucobol.def file.

Set the property ACTIVE_BACKGROUND = COLOR_VALUE for any entry field. COLOR_VALUE can be When the entry-field is selected, it will change background color to this value, and when it loses focus it will revert.

For example, to create an entry field with a white background-color, black foreground-color (text), and a green active-background:

03 ENTRY-FIELD [...] BACKGROUND-COLOR is 7, FOREGROUND-COLOR IS 0, 
	ACTIVE-BACKGROUND is GREEN.
Notes:
  • The background color reverts when the field is no longer active.
  • ACTIVE_BACKGROUND has no effect on Entry Fields that use the BACKGROUND-RGB or FOREGROUND-RGB values.
  • The ACTIVE_BACKGROUND property cannot use an RGB value.

For a list of valid values, see the FOREGROUND-COLOR and BACKGROUND-COLOR Phrases topic in your ACUCOBOL-GT documentation.