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 ] ;
  1. item-tag is an identifier that defines the name of the item tag in the layout section.
  2. item-name defines the form item name and the action name.
  3. attribute-list defines the aspect and behavior of the form item.

Attributes

COMMENT, DISCLOSUREINDICATOR, FONTPITCH, HIDDEN, IMAGE, SAMPLE, SIZEPOLICY, STYLE, TABINDEX, TAG, TEXT.

Usage

Define 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";
...