.reference (replaced THISBACKs)

This commit is contained in:
Mirek Fidler 2025-01-22 13:23:48 +01:00
parent baff766249
commit 8fc23a3bf3
43 changed files with 106 additions and 3313 deletions

View file

@ -5,19 +5,13 @@ using namespace Upp;
struct MyApp : TopWindow {
typedef MyApp CLASSNAME;
bool check;
void Check() { check = !check; }
bool check = false;
void RightDown(Point p, dword) {
MenuBar bar;
bar.Add("Check", THISBACK(Check)).Check(check);
bar.Add("Check", [=] { check = !check; }).Check(check);
bar.Execute();
}
MyApp() {
check = false;
}
};
GUI_APP_MAIN