Placing toolbar in top area

Placing toolbar in top area

Anonymous
Not applicable
271 Views
1 Reply
Message 1 of 2

Placing toolbar in top area

Anonymous
Not applicable
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
0 Likes
272 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
This is the same problem I am running into. I cannot get the toolbars to dock correctly. I also can't get the toolbars to stay once I close autocad and restart it. Each time I run autocad, I must run my loadtoolbar macro. Are you running into this same problem?
Jason
0 Likes