ToolbarControl

ToolbarControl

karl.sch1983
Advocate Advocate
489 Views
3 Replies
Message 1 of 4

ToolbarControl

karl.sch1983
Advocate
Advocate

Hello everyone, I am referring the sample by @Jeff_M  for Ribbon tab and it works great. Is there a similar approach for a toolbar. I cannot see a ToolbarControl similar to a RibbonControl in the AdWindows assembly. Am I missing something or is there a different way to create toolbar. Thanks in advance for all your help.

0 Likes
Accepted solutions (1)
490 Views
3 Replies
Replies (3)
Message 2 of 4

Jeff_M
Consultant
Consultant

Toolbars are a part of the Autodesk.AutoCAD.Customization namespace. THIS post by Kean Walmsley may be of help.

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 3 of 4

karl.sch1983
Advocate
Advocate

Thanks @Jeff_M I am aware of that post. But I wanted to see if there was some other option where I can create a toolbar without using the cui API, just like the ribbon control (I mentioned the link to your post above) does not use the cui API. I guess that is not possible. Can you confirm that such a control does not exist for toolbar which bypasses the CUI?

The only other option I have is to use activex as pointed by @Alexander.Rivilis here, but that does not allow use of png files. I will hate to create multiple icons for the toolbar for different themes and AutoCAD versions. Any thoughts? Thanks for everyone's time.

0 Likes
Message 4 of 4

karl.sch1983
Advocate
Advocate
Accepted solution

I just ended up making multiple image files with different background colors for light/dark color theme and for different acad versions. Seems like a lot of work. it would be nice if png files were recognized in toolbars.

0 Likes