DAZ Script | |
---|---|
DockArea | { ToolBarTop, ToolBarBottom, ToolBarLeft, ToolBarRight, NoToolBarArea } |
DAZ Script | |
---|---|
void | clear () |
void | dock ( DzToolBar::DockArea area, String beforeBar=“” ) |
DockArea | dockedArea () |
DzToolBarItem | getItem ( Number which ) |
Array | getItemList () |
Number | getNumItems () |
Boolean | hasItems () |
void | insertAction ( DzAction action, DzAction before ) |
void | insertAction ( String action, Number index=-1 ) |
void | insertCustomAction ( String action, Number index=-1 ) |
void | insertCustomWidget ( String uiScript, Number index=-1 ) |
void | insertItem ( DzToolBarItem item, Number index=-1 ) |
void | insertSeparator ( Number index=-1 ) |
void | insertViewportAlignmentSpacer ( Number alignment, Number index=-1 ) |
void | insertViewportCenterAlignSpacer ( Number index=-1 ) |
void | insertViewportLeftAlignSpacer ( Number index=-1 ) |
Boolean | isClosed () |
void | removeItem ( Number index ) |
void | removeItem ( DzToolBarItem item ) |
void | setClosed ( Boolean onOff ) |
void | undock ( Point pos ) |
void | itemListChanged () |
This class provides access to a toolbar within the interface. This class is not intended to be constructed directly, rather an instance of the class is created using DzPaneMgr::createToolBar().
See Also:
The areas of a DzActivityLayout where this toolbar can be docked.
void : clear()
Removes all items from this bar.
void : dock( DzToolBar::DockArea area, String beforeBar=“” )
Docks this toolbar in the specified area on the DzActivityLayout, and shows this toolbar if it is hidden.
Parameter(s):
DockArea : dockedArea()
Return Value:
DzToolBarItem : getItem( Number which )
Parameter(s):
Return Value:
Array : getItemList()
Return Value:
Number : getNumItems()
Return Value:
Return Value:
true
if there are items in this toolbar, otherwise false
.void : insertAction( DzAction action, DzAction before )
Adds the specified action to this toolbar.
Parameter(s):
action
before.void : insertAction( String action, Number index=-1 )
Adds the specified action to this toolbar.
Parameter(s):
void : insertCustomAction( String action, Number index=-1 )
Adds the specified custom action to this toolbar.
Parameter(s):
void : insertCustomWidget( String uiScript, Number index=-1 )
Adds a custom widget to this toolbar.
Parameter(s):
void : insertItem( DzToolBarItem item, Number index=-1 )
Inserts the specified item into this toolbar at the specified location.
Parameter(s):
void : insertSeparator( Number index=-1 )
Adds a separator to this toolbar.
Parameter(s):
void : insertViewportAlignmentSpacer( Number alignment, Number index=-1 )
Adds a spacer to this toolbar which adjusts itself so that items added after it are aligned over the application viewport.
Parameter(s):
void : insertViewportCenterAlignSpacer( Number index=-1 )
Adds a spacer to this toolbar which adjusts itself so that any items after it are centered over the application viewport.
Parameter(s):
void : insertViewportLeftAlignSpacer( Number index=-1 )
Adds a spacer to this toolbar which adjusts itself so that any items after it are left aligned over the application viewport.
Parameter(s):
Return Value:
true
if this toolbar is not displayed, false
if this toolbar is displayed.void : removeItem( Number index )
Removes the item at the specified index from this toolbar.
Parameter(s):
void : removeItem( DzToolBarItem item )
Removes the specified item from this toolbar.
Parameter(s):
void : setClosed( Boolean onOff )
Sets whether this toolbar is displayed.
Parameter(s):
true
, this toolbar is not displayed. If false
, this toolbar is displayed.Undocks this toolbar, moves it to the specified global coordinates, and shows this toolbar if it is hidden.
Parameter(s):
void : itemListChanged()
Signature:“itemListChanged()”
Emitted when items are added to or removed from this toolbar.