CHECKBOX item definition
Defines attributes for a boolean or three-state checkbox field.
Syntax
CHECKBOX item-tag = field-name [
, attribute-list ]
;
- item-tag is an identifier that defines the name of the item tag in the layout section.
- field-name identifies the name of the screen record field.
- 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
, STRETCH
, STRETCHMAX
, STRETCHMIN
, STYLE
, TAG
, TABINDEX
, TEXT
, TITLE
, VALIDATE LIKE
, UNSORTABLE
, UNSIZABLE
, UNHIDABLE
, UNMOVABLE
, VALUECHECKED
, VALUEUNCHECKED
.
Style attributes
Common: backgroundColor
, border
, fontFamily
, fontSize
, fontStyle
, fontWeight
, textColor
, textDecoration
.
Class-specific: customWidget
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";
...