Use this field-level keyword to specify the color or display attributes to be used when displaying the available choices in a menu bar, push button, selection field, or subfile single or multiple choice selection list.
The format of the keyword is:
CHCAVAIL([color] [display-attributes])
One parameter must be specified.
The color parameter indicates the color of the choice text for a field on a color workstation. The choice text can be specified on the following keywords:
The choice text can also come from the text displayed for a subfile used as a single choice or multiple choice selection list. The parameter is specified as an expression of the form (*COLOR value).
The valid values for the color parameter are:
If the color parameter is not specified, the default color for the available choices in a menu bar is green. The default color for the available choices in a selection field is green. This parameter is ignored on a monochrome work station.
The display-attribute parameter indicates the display attributes of the choice text specified on the MNUBARCHC or CHOICE keywords for the field. The parameter is specified as an expression of the form, (*DSPATR value1 <value2 <value3...>>).
The valid values for the display attributes are:
The default display attribute in a menu bar is high intensity. The default display attribute in a selection field is normal (or low) intensity.
The CHCAVAIL keyword is allowed on a field only if the field has one or more PSHBTNCHC, CHOICE, or MNUBARCHC keywords. It is also allowed on a subfile control record if the subfile control record uses either the SFLSNGCHC or SFLMLTCHC keywords.
Option indicators are valid for this keyword.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.