Toolbar

From VisionaireWiki
Revision as of 11:57, 16 August 2009 by Alex (talk | contribs) (Bot (Edward's framework))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.