Remove toolbar

20% Command group 20% Flag affected 20% Reversible 20% Execute on client 20% Platform(s)
Toolbars NO NO NO All

Syntax

Remove toolbar {toolbar-instance}

Description

This command removes the specified toolbar instance.

Example

Show docking area {kDockingAreaLeft}
Install toolbar {tbMyToolbar/kDockingAreaLeft}
# do something
# now remove the toolbar & docking area again
Remove toolbar {tbMyToolbar}
Hide docking area {kDockingAreaLeft}
# or you do it like this
Do $itoolbars.tbMyToolbar.$close()
# or if you used notation to install the toolbar
Do $clib.$toolbars.tbMyToolbar.$open('*',kDockingAreaLeft) Returns lToolBarRef
# use the toolbar reference to close it
Do lToolBarRef.$close()