dimanche 1 mai 2011

How to assign parameter in code when menu item is clicked

You can override method clicked on the button and put the following code
there:

MenuFunction menuFunction;
Args args = new Args();
;
menuFunction = new MenuFunction(menuitemactionstr(yourMenuItem),
MenuItemType::Action);
args.parm(someValue); //or parmEnum
menuFunction.run(args);

Aucun commentaire:

Enregistrer un commentaire