Remove toolbar

Command group Flag affected Reversible Execute on client 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('*',kDockingAreaLeftReturns lToolBarRef
# use the toolbar reference to close it
Do lToolBarRef.$close()