Обновлен пример: вложенность окна при нажатии на ОК.
This commit is contained in:
parent
bb7d9c5889
commit
0c46949c38
1 changed files with 2 additions and 2 deletions
|
|
@ -22,8 +22,8 @@ final class Simple : ScreenBase
|
|||
|
||||
override void build(ScreenContext context, Window window, WidgetContainer ui)
|
||||
{
|
||||
auto okBtn = new Button(3, 2, "OK");
|
||||
auto cancelBtn = new Button(3, 9, "Cancel", () => ScreenAction.quit(ScreenResult.none()));
|
||||
auto okBtn = new Button(3, 2, "OK", () => ScreenAction.push(new Simple()));
|
||||
auto cancelBtn = new Button(3, 9, "Cancel", () => ScreenAction.pop(ScreenResult.none()));
|
||||
|
||||
_ui.add(okBtn);
|
||||
_ui.add(cancelBtn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue