Message 1 of 2
add/remove custom buttons from custom panel

Not applicable
06-09-2016
06:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm gradually growing the number of new command buttons I have added to my new panel.
Not all of the commands will be relevant to the assembly file that is open.
I want to change what buttons are shown in an assembly file dependant on values held within a custom propertyset.
Currently I am using this line of code within an if statement to disable/enable the buttons. this is fired upon the document open/new and change document triggers
m_CGToolButton.ButtonDefinition.Enabled = False
I curious if anyone knows away hide them completely instead of just disabling them?
Ta,