add/remove custom buttons from custom panel

add/remove custom buttons from custom panel

Anonymous
Not applicable
310 Views
1 Reply
Message 1 of 2

add/remove custom buttons from custom panel

Anonymous
Not applicable

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,

0 Likes
311 Views
1 Reply
Reply (1)
Message 2 of 2

zadazLWJJ4
Enthusiast
Enthusiast

Any idea on this one? I would be also interested in finding out what is the best way for removing some buttons. Or is there any way to replace existing button?

0 Likes