how to call a class and its method inside a menu item's clicked()?
*This post is locked for comments
how to call a class and its method inside a menu item's clicked()?
*This post is locked for comments
Hi,
Please use the following code, if you want to call a menuItem.
MenuFunction menuFunction; menuFunction = new MenuFunction(menuItemActionStr(MenuItemName), MenuItemType::Action); menuFunction.run();
If you want to make a call to a class, you can call the main method of the class like below.
Args args = new Args();
ClassName::main(args);
Why don't you use Action MenuItem... take a look at this : Access a class from a menu[Ax 2012]
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,387
Most Valuable Professional
nmaenpaa
101,156