Hide/show toolbar command icon or delete command from toolbar

I want to change the icon of a command button from a toolbar in Ruby. I don’t see any way to do it.
Just want to change a “connected” icon to a “disconnected” icon on the same button (Command).
Any ideas? thanks

This is not exposed to the Ruby API. (And I am not sure if it can be done on both platforms.)

Currently you must show both buttons side-by-side, and have only one toggled (checked) at a time. For buttons they appear to be pushed down when “checked”. So the user will click the button that is unchecked or in the “up” position (and then your code should uncheck the other button.)

Ah thanks, the API is pretty minimalist (crippled). Will try two buttons…

1 Like