BUTTON item definition
Defines attributes for a push-button that can trigger an action.
Syntax
BUTTON item-tag: item-name [ , attribute-list ] ;
- item-tag is an identifier that defines the name of the item tag in the layout section.
- item-name defines the form item name and the action name, it is mandatory to bind the button to an action handler.
- attribute-list defines the aspect and behavior of the form item.
Form attributes
COMMENT, FONTPITCH, HIDDEN, IMAGE, SAMPLE, SIZEPOLICY, STRETCH, STYLE, TABINDEX, TAG, TEXT.
Style attributes
Common: backgroundColor, border, fontFamily, fontSize, fontStyle, fontWeight, textColor, textDecoration.
Class-specific: alignment, buttonType, scaleIcon.
Usage
Defines the rendering and behavior of a button item tag,
with a BUTTON element in the ATTRIBUTES section.
For more details about this item type, see BUTTON item type.
Example
LAYOUT
GRID
{
[btn1 ]
...
}
END
END
ATTRIBUTES
BUTTON btn1: print, TEXT="Print Report", IMAGE="printer";
...