Message 1 of 2
Placing toolbar in top area
Not applicable
06-16-2002
10:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Using VBA for Autocad2002, I want to place a VBA created Toolbar in the top area to the right of the second toolbar down, ie in index terms, left = 1, top = 1, where there is spare space. I thought this would be straight forward but it has proved to be anything but.
I place it with:
With CustomToolbar
.Dock acToolbarDockTop
.Left = 1
.top = 1
End With
but it always goes to the left end of the first top tool bar ie in index terms, left =0, top=0, moving the existing top toolbar to the right.
In the ActiveX help, under "Floating and docking toolbars", it says "The Dock method takes three parameters as input: Side, Row, and Column". This would be just what I want if it were true. However when I try to run
CustomToolbar.Dock acToolbarDockTop, 1, 1
I get "Compile error. Wrong number of arguments or invalid property assignment". Even the example that I am led to from this page has only the side parameter. Elsewhere in the help file eg under "Dock method", only the side parameter is mentioned.
Can anyone help me out on this? Thanks.
Kevin Smith
I place it with:
With CustomToolbar
.Dock acToolbarDockTop
.Left = 1
.top = 1
End With
but it always goes to the left end of the first top tool bar ie in index terms, left =0, top=0, moving the existing top toolbar to the right.
In the ActiveX help, under "Floating and docking toolbars", it says "The Dock method takes three parameters as input: Side, Row, and Column". This would be just what I want if it were true. However when I try to run
CustomToolbar.Dock acToolbarDockTop, 1, 1
I get "Compile error. Wrong number of arguments or invalid property assignment". Even the example that I am led to from this page has only the side parameter. Elsewhere in the help file eg under "Dock method", only the side parameter is mentioned.
Can anyone help me out on this? Thanks.
Kevin Smith