Form specification files / Form file structure |
The TOOLBAR section defines a toolbar with buttons that are bound to actions.
TOOLBAR [toolbar-identifier] [ ( toolbar-attribute [,...] ) ] { ITEM item-identifier [ ( item-attribute [,...] ) ] | SEPARATOR [separator-identifier] [ (separator-attribute [,...] ) ] } [...] END
The TOOLBAR section must appear in the sequence described in dorm file structure. This section is optional.
The TOOLBAR section defines a toolbar in a form. A TOOLBAR section defines a set of ITEM elements that can be grouped by using a SEPARATOR element. Each ITEM defines a toolbar button associated to an action by name. The SEPARATOR keyword specifies a vertical line.
The toolbar buttons are enabled according to the actions defined by the current interactive instruction. For example, you can define a toolbar button with the action name "cancel" to bind the toolbar item to this predefined dialog action.
Toolbar button labels are visible by default. The TOOLBAR supports the BUTTONTEXTHIDDEN attribute to hide the labels of buttons.
TOOLBAR elements can get a STYLE attribute in order to use a specific rendering/decoration following presentation style definitions.
TOOLBAR tb ( STYLE="mystyle" ) ITEM accept ( TEXT="Ok", IMAGE="ok" ) ITEM cancel ( TEXT="Cancel", IMAGE="cancel" ) SEPARATOR ITEM editcut -- Gets its decoration from action defaults ITEM editcopy -- Gets its decoration from action defaults ITEM editpaste -- Gets its decoration from action defaults SEPARATOR ( TAG="lastSeparator") ITEM append ( TEXT="Append", IMAGE="add" ) ITEM update ( TEXT="Update", IMAGE="modify" ) ITEM delete ( TEXT="Delete", IMAGE="del" ) ITEM search ( TEXT="Search", IMAGE="find" ) END