Toolbar

From VisionaireWiki
Jump to navigation Jump to search

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.