mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Tutorial: Fixed Gui09 tutorial - thanks mingodad. #28 - GitHub issue
git-svn-id: svn://ultimatepp.org/upp/trunk@15647 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e545bf3e8b
commit
8859a640e7
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ struct MyAppWindow : TopWindow {
|
|||
int result = Null;
|
||||
MenuBar menu;
|
||||
for(int i = 0; i < 10; i++)
|
||||
menu.Add(AsString(i), [&] { result = i; });
|
||||
menu.Add(AsString(i), [&, i] { result = i; });
|
||||
menu.Separator();
|
||||
menu.Add("Exit", [=] { Exit(); });
|
||||
menu.Execute();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue