Removing a Button

73
4
Jump to solution
04-24-2019 05:06 AM
Highlighted
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?

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
New Contributor III

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

View solution in original post

4 Replies
Highlighted
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

Reply
0 Kudos
Highlighted
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.

Reply
0 Kudos
Highlighted
New Contributor III

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

View solution in original post

Highlighted
New Contributor III

Thank you.

Reply
0 Kudos