CHECKBOX item definition

Defines a boolean or three-state checkbox field, in a grid-based layout.

Syntax

CHECKBOX item-tag = field-name [ , attribute-list ] ;
  1. item-tag is an identifier that defines the name of the item tag in the layout section.
  2. field-name identifies the name of the screen record field.
  3. attribute-list defines the aspect and behavior of the form item.

Form attributes

COLOR, COLOR WHERE, COMMENT, DEFAULT, FONTPITCH, HIDDEN, INCLUDE, JUSTIFY, KEY, NOT NULL, NOENTRY, REQUIRED, SAMPLE, SIZEPOLICY, STYLE, TAG, TABINDEX, TEXT, TITLE, VALIDATE LIKE, UNSORTABLE, UNSIZABLE, UNHIDABLE, UNMOVABLE, VALUECHECKED, VALUEUNCHECKED.

Style attributes

Common: backgroundColor, border, fontFamily, fontSize, fontStyle, fontWeight, localAccelerators, showAcceleratorInToolTip, textColor, textDecoration.

Class-specific: customWidget, iosCheckBoxOnTintColor .

Usage

Define the rendering and behavior of a checkbox item tag, with a CHECKBOX element in the ATTRIBUTES section.

For more details about this item type, see CHECKBOX item type.

Example

LAYOUT
GRID
{
[f1         ]
 ...

}
END
END

ATTRIBUTES
CHECKBOX f1 = customer.active,
   REQUIRED, TEXT="Active",
   VALUECHECKED="Y", VALUEUNCHECKED="N";
...