Disable buttons on the toolbar

Disable buttons on the toolbar

Anonymous
Not applicable
488 Views
1 Reply
Message 1 of 2

Disable buttons on the toolbar

Anonymous
Not applicable

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).

0 Likes
489 Views
1 Reply
Reply (1)
Message 2 of 2

Balaji_Ram
Alumni
Alumni

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

0 Likes