BUTTON item definition
Defines a push-button that can trigger an action, in a grid-based layout.
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.
- attribute-list defines the aspect and behavior of the form item.
Form attributes
COMMENT,
DISCLOSUREINDICATOR,
FONTPITCH,
HIDDEN,
IMAGE,
SAMPLE,
SIZEPOLICY,
STYLE,
TABINDEX,
TAG,
TEXT.
Style attributes
Common: backgroundColor, border, fontFamily, fontSize, fontStyle, fontWeight, localAccelerators, showAcceleratorInToolTip, 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";
...