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" [...]
]
>
{
<ToolBarItem item-attribute="value" [...]
/>
|
<ToolBarSeparator separator-attribute="value" [...]
/>
|
<ToolBarAutoItems autoitems-attribute="value" [...]
/>
}
[...]
</ToolBar>
- toolbar-attribute defines a property of the toolbar.
- item-attribute defines a property of a toolbar item.
- autoitems-attribute defines a property of a toolbar auto-items placeholder.
- separator-attribute defines a property of a toolbar separator.
Toolbar XML 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 (0
= visible, 1 = hidden).
Important:
The |
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 (0 = visible, 1 = hidden). |
image |
STRING |
The icon to be used in the toolbar button. |
autohide |
INTEGER |
When set to 1, indicates that the element must be automatically hidden when corresponding action is disabled. |
Attribute | Type | Description |
---|---|---|
content |
STRING |
Defines the type of content for this element. Values can be
"actions" , "programs" or "windows" . This
attribute is mandatory! |
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 auto-item is hidden (0 = visible, 1 = hidden). |
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 (0 = visible, 1 = hidden). |