toolbar.define

Defines a toolbar (creates it)
Syntax

toolbar.define [-m] (<tbname>,<label>)
{
    button [-d] (<name>,<icon>,<text>)<callback code>
    separator <sepname>
    ...
    ...
    ...
}

Description
This command provides a quick way to define a toolbar: it is meant as a shortcut for the sequence toolbar.create,toolbar.addbutton,....
<tbname> and <label> have the same meaning as for the toolbar.create command.
The definition block can contain one or more <b>button</b> statements that act just like toolbar.addbutton was called. The <name>,<icon>,<text> and <callback code> parameters have all the same meaning.
The definition block can contains one or more <b>separator</b> statements that act exactly like toolbar.addseparator. If the toolbar identified by <tbname> already exists it is cleared, unless -m is used: in that case the new contents are merged to the existing ones.
See also
toolbar.create toolbar.addbutton toolbar.addseparator

Main index, Command index
KVirc 3.0.0 documentation
Generated by root at Thu Apr 29 12:41:05 2004