Syntax of a toolbar file (.4tb)

A .4tb toolbar file is an XML file that holds a tree of elements defining a toolbar structure.

Syntax: XML Toolbar

<ToolBar [ toolbar-attribute="value" [...]] >
  { <ToolBarSeparator separator-attribute="value" [...] />
  | <ToolBarItem item-attribute="value" [...] />
  } [...]
</ToolBar>
  1. toolbar-attribute defines a property of the toolbar.
  2. item-attribute defines a property of the toolbar item.

Toolbar XML attributes

Table 1. ToolBar node attributes
Attribute Type Description
style STRING Use to decorate the element with a presentation style.
tag STRING User-defined attribute to identify the node.
name STRING Identifies the toolbar.
buttonTextHidden INTEGER Defines if the text of toolbar buttons must appear by default.
Table 2. ToolBarItem node attributes
Attribute Type Description
name STRING

Identifies the action corresponding to the toolbar button.

Can be prefixed with the sub-dialog identifier.

style STRING Use to decorate the element with a presentation style.
tag STRING User-defined attribute to identify the node.
text STRING The text to be displayed in the toolbar button.
comment STRING The message to be shown as tooltip when the user selects a toolbar button.
hidden INTEGER Indicates if the item is hidden.
image STRING The icon to be used in the toolbar button.
Table 3. ToolBarSeparator node attributes
Attribute Type Description
name STRING Identifies the toolbar separator.
style STRING Use to decorate the element with a presentation style.
tag STRING User-defined attribute to identify the node.
hidden INTEGER Indicates if the separator is hidden.