Home » U++ Library support » Menus&Toolbars » menus using different classes
menus using different classes [message #53735] |
Sat, 25 April 2020 22:07  |
|
Hi all-
In the SqlApp examples on Ultimate site,
SqlApp is always in the same scope. I have a class MyMain, Class2, Class3 etc.
How can I get the MyMain::SubMenu to call a menu located in a different class, so I can use different class functions? I put a menu on the main form and on the layout for the different class. Thanks! roboloki
void MyMain::SubMenu(Bar& bar) {
bar.Add("Subsidiary", [=] { showciti();});
bar.Add("Purch. Journal", [=] { showpj();});
bar.Add("Exit", [=] { Exit(); });
}
void MyMain::MainMenu(Bar& bar) {
bar.Sub("Menu", [=](Bar& bar) { SubMenu(bar); });
}
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:25:52 CEST 2025
Total time taken to generate the page: 0.00452 seconds
|