Toolbar

From VisionaireWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

toolbar

Creates a toolbar.

After execution the new toolbar is the default-parent, the default-layout is empty.

Lua Syntax:

toolbar( [windowName], {flags=1, 
    edit = true|false, 
    vertical = true|false, 
    select = int, 
    addSeparator = true|false, 
    toolBitmapSize = {x=int,y=int}})

Arguments

windowName

"string" - Name of the new toolbar.

Flags

e/edit

If true then edit an existing toolbar.

v/vertical

If true then a vertical toolbar is created, default is horizontal.

s/select

Selects a toolbutton of the toolbar. Specifies the button (first button starts at 0) which will be selected. Only allowed with edit flag. If set to -1 then all buttons of the toolbar will be deselected.

asp/addSeparator

If true then a separator will be added to the toolbar. Only possible with edit flag.

tbs/toolBitmapSize

Specifies the size of the tool bitmaps. If not specified then the default size 16x15 is used.

Return Values

String
Name of the new toolbar.