Action via code

Cris

New member
Is it possible assign an action to button via code?
Alternatively is it possible open and edit the model file of a toolbar?
Thank you.
 
What do you mean “via code”? Do you mean at runtime?
Cris said:
Alternatively is it possible open and edit the model file of a toolbar?
Sure, model files are just Zip archives. You can use 7-Zip and modify the Actions.xml file
 
Last edited:
Yes, but it’s complex. It would be better to create buttons and menu items at design time, make them invisible and change their properties/make them visible at runtime.
 
Back
Top