codebase="hhctrl.ocx#Version=4,73,8561,0"> codebase="hhctrl.ocx#Version=4,73,8561,0" > codebase="hhctrl.ocx#Version=4,73,8561,0" >
 
  Toolbar object

An AutoCAD toolbar.

VBA class name:

AcadToolbar 

Create using:

Toolbars.Add 

Access via:

Toolbars.Item 

Toolbars provide access to frequently used or custom commands, settings, macros, and modes. You can add tools to the AutoCAD default toolbars or create your own toolbars. You can also remove toolbar items or entire toolbars, and reposition toolbars.

To create a new toolbar, use the Add method. The Add method will create an empty toolbar to which you can add toolbar buttons. To add a toolbar button to a toolbar, use the AddToolbarButton method. You can add separators to your toolbar using the AddSeparator method. Both the AddToolbarbutton and AddSeparator methods return a ToolbarItem object representing an individual button on the toolbar. Use the ToolbarItem object to add functionality to the toolbar button, or to create flyout toolbar buttons.

You can change the position of toolbars by docking them along the top, bottom, or sides of the AutoCAD screen, or you can float toolbars anywhere on the screen. To dock a toolbar, use the Dock method. To float a toolbar, use the Float method. To check the current positioning of a toolbar, use the DockStatus property. If you do not want the toolbar to be visible at all, use the Visible property to hide it.

To edit or query a toolbar, use the following methods and properties:

Methods

AddToolbarButton

AddSeparator

Delete

Dock

Float

Item  

Properties

Application

Count

DockStatus

FloatingRows

Height

HelpString

LargeButtons

Left

Name

Parent

TagString

Top

Visible

Width  

 

   Comments?