.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disable buttons on the toolbar

1 REPLY 1
Reply
Message 1 of 2
Irkutskikh
366 Views, 1 Reply

Disable buttons on the toolbar

Hello.

How can we disable buttons on the toolbar? Buttons on the ribbon can be disabled, and can it be done on the toolbar? (AutoCAD 2011).

1 REPLY 1
Message 2 of 2
Balaji_Ram
in reply to: Irkutskikh

Hi,

 

Sorry, the API does not support disabling a toolbar item.

Here is a workaround that was suggested by my colleague to a similar query. 

 

<<< 

A toolbar item cannot be disabled unfortunately, you would need to use its “AcadToolbarItem.Delete” method, that will suppress it from the toolbar, or use its “AcadToolbarItem.Macro” property and set it to an empty string.

 >>>



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost