ADXRibbutton Context Menu Name in Excel

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

ADXRibbutton Context Menu Name in Excel
 
Subscribe
Cameron Blackburn




Posts: 5
Joined: 2010-01-14
In the PropertyChanging event for a ADXRibbonButton in Excel, am I able to determine which context menu the event is being fired from as I would like to set the visibility of the ADXRibbonButton based on the context menu that is trying to show it.

Essentially I have some ADXRibbonButton's on a ADXRibbonContextMenu that appear on "Excel.ContextMenuCell", "Excel.ContextMenuCellLayout", "Excel.ContextMenuColumn", "Excel.ContextMenuColumnLayout", "Excel.ContextMenuRow", "Excel.ContextMenuRowLayout" and "Excel.ContextMenuWorkbookPly". I only want to have to define and configure the buttons once, but I don't want all of the buttons to appear on all of the context menus, so I want to set their visibility based on the ContextMenuName.
Posted 23 Jul, 2019 21:28:06 Top
Andrei Smolin


Add-in Express team


Posts: 16316
Joined: 2006-05-11
Hello Cameron,

There's no way to find out the context menu. You need to use different ADXRibbonButton components on different context menus.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 24 Jul, 2019 02:39:17 Top
Cameron Blackburn




Posts: 5
Joined: 2010-01-14
Ok. Thanks.
Posted 24 Jul, 2019 03:02:41 Top
Andrei Smolin


Add-in Express team


Posts: 16316
Joined: 2006-05-11
You are welcome.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 24 Jul, 2019 03:06:45 Top