BUTTONEDIT item definition
Defines attributes for a line-edit field with a push-button that can trigger an action.
Syntax
BUTTONEDIT 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
ACTION, AUTONEXT, CENTURY, COLOR, COMPLETER, COLOR WHERE, COMMENT, DEFAULT, DISPLAY LIKE, DOWNSHIFT, FONTPITCH, HIDDEN, FORMAT, IMAGE, INCLUDE, INVISIBLE, JUSTIFY, KEY, KEYBOARDHINT, NOT NULL, NOTEDITABLE, NOENTRY, PICTURE, PLACEHOLDER, PROGRAM, REVERSE, SAMPLE, SCROLL, STRETCH, STRETCHMAX, STRETCHMIN, STYLE, REQUIRED, TAG, TITLE, TABINDEX, UNSORTABLE, UNSIZABLE, UNHIDABLE, UNMOVABLE, UPSHIFT, VALIDATE LIKE, VERIFY.
Style attributes
Common: backgroundColor, border, fontFamily, fontSize, fontStyle, fontWeight, textColor, textDecoration.
Class-specific: showVirtualKeyboard, scaleIcon.
Usage
Define the rendering and behavior of a buttonedit item tag,
with a BUTTONEDIT element in the ATTRIBUTES section.
For more details about this item type, see BUTTONEDIT item type.
Example
LAYOUT
GRID
{
[f1 ]
...
}
END
END
ATTRIBUTES
BUTTONEDIT f1 = customer.state,
REQUIRED, IMAGE="smiley", ACTION=zoom;
...