Removing a Button

920
4
Jump to solution
04-24-2019 05:06 AM
MickeyO_Neil
New Contributor III

My Add-In has several Features which can be activated and deactivated. If a Feature is deactivated a Button should be removed from a menu. But a custom condition only deactivats Buttons. How do I remove/change visibility of a Button at runtime?

0 Kudos
1 Solution

Accepted Solutions
SteveVan_Esch
Esri Contributor

For menus check out DynamicMenus, you add their constituent controls at run-time.

View solution in original post

4 Replies
UmaHarano
Esri Regular Contributor

Hi

Buttons cannot be hidden at runtime, but the group that holds the button can be hidden by using conditions and states.  

Thanks

Uma

0 Kudos
MickeyO_Neil
New Contributor III

I only need to remove one button of a group/menu, the rest of the menu should remain.

But thank you for your tip.

0 Kudos
SteveVan_Esch
Esri Contributor

For menus check out DynamicMenus, you add their constituent controls at run-time.

MickeyO_Neil
New Contributor III

Thank you.

0 Kudos