Page 1 of 1

Enabling/disabling buttons in the Ribbon

Posted: Sun May 10, 2020 3:14 pm
by geza.szabo
Hi,

is it possible to enable/disable buttons in the Ribbon using code? We are adding custom buttons to the Ribbon by updating the Default.CUI. These buttons are simply shortcuts to commands. Depending on the selection we would like to enable/disable these buttons. I know how to reflect on selection change but can not figure out how to disable/enable a button

Kind regards

Geza Szabo

Re: Enabling/disabling buttons in the Ribbon

Posted: Wed May 13, 2020 12:02 am
by QuanNguyen
Hi Geza,

Please refer to the "Displaying an AutoCAD ribbon tab contextually" here: https://www.keanw.com/2011/10/displayin ... g-net.html
The link's for AutoCAD only but you can customize to work with IntelliCAD for your context, I think.
RibbonContextualTab.png
RibbonContextualTab.png (58.44 KiB) Viewed 5876 times

Re: Enabling/disabling buttons in the Ribbon

Posted: Wed May 13, 2020 12:21 am
by geza.szabo
Hi QuanNguyen,

To clarify, I don't need to show a context ribbon. I need to enable/disable a button on the ribbon.

Kind regards
Geza