Dropdown toolbar

Dropdown toolbar

Anonymous
Not applicable
409 Views
3 Replies
Message 1 of 4

Dropdown toolbar

Anonymous
Not applicable
Hello everyone,

I'm customizing our AutoCAD system at work with mostly AutoLISP applications.
I tried to create a toolbar named Settings with dropdown elements (similar to the Layer and Dimstyle).
I guess it's only possible with VBA. Can it be done, and if so, can anybody help me?
The only thing the dropdown elements need to do is change the value of a variable.

Regards,
Wess Wesselink
0 Likes
410 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
hmmmm.. good question ... while i see a HINT of the ability to add controls to the toolbar (see the "AcToolbarItemType" enum) I dont actually see any way, at least thru the ToolBar item, to add this. If you dont get any other responses, and you simply MUST have a drop down list, you could always make your own form ...
0 Likes
Message 3 of 4

gizmowiebe
Contributor
Contributor
Hello Wess,

maybe this can give you a head start

[http://www.visiblevisual.com/index.php/AutoCad-VB/create-toolbar.html]

regards

Wiebe
0 Likes
Message 4 of 4

Anonymous
Not applicable
When I take a quick look at the code, it will create a simple toolbar with buttons.

I know how to create a listbox in VB (and C#) and in MSOffice, but I can't find the similar classes in VBA/AutoCAD.
Maybe it's not defined in the AutoCAD system.

If so, is there another way doing something similar. If it's not possible within AutoCAD I'll use a flyout toolbar.

Thanks anyway,Wess
0 Likes