mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
.reference (replaced THISBACKs)
This commit is contained in:
parent
baff766249
commit
8fc23a3bf3
43 changed files with 106 additions and 3313 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue