How to prevent ribbon button flicking when changing focus

Add-in Express™ Support Service
That's what is more important than anything else

How to prevent ribbon button flicking when changing focus
 
David Potashinsky


Guest


One of the requirements in our software is to show ADXRibbonButton button on appropriated documents and NOT to SHOW on others. When I manage the state on Excel event WorkbookActivate I have fallowing issue:
User changes focus between document ?Â?Ð?ìwithout the button?Â?Ð?í to document that should have a button.
I send a message to ADXAddinModule class ?Â?Ð?ã first time when document loose a focus ?Â?Ð?ã to hide a button, and then second time ?Â?Ð?ã when I need to show the button.
Button on document, that should show the button has button flicking (disappears and then appears).
I need to prevent button flicking ?Â?Ð?ã the best way can be to access to document specific instance of the ADXRibbonButton

Thank you, d.
Posted 30 Oct, 2016 05:10:51 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello David,

David Potashinsky writes:
to show ADXRibbonButton button on appropriated documents and NOT to SHOW on others


Please check section https://www.add-in-express.com/docs/net-ribbon-components.php#properties-events. It describes your scenario.


Andrei Smolin
Add-in Express Team Leader
Posted 31 Oct, 2016 05:10:01 Top