diff options
| author | trustable-code <krauter.simon@arcor.de> | 2018-09-24 19:57:05 +0200 |
|---|---|---|
| committer | trustable-code <krauter.simon@arcor.de> | 2018-09-24 19:57:05 +0200 |
| commit | 89a4ecc77c7833671913dbc7923db5329f22c447 (patch) | |
| tree | 95ef31e46a4aba32bf7ada9b06d835dd3a5a6d42 /examples | |
| parent | 40ee93c6fb162ed5c20853060099088e0b568e31 (diff) | |
| download | NiGui-89a4ecc77c7833671913dbc7923db5329f22c447.tar.gz NiGui-89a4ecc77c7833671913dbc7923db5329f22c447.zip | |
Improve messages boxes and buttons
- Message box: button1 will be focused
- Buttons: Key_Return and Key_Space are now handled in
platform-independent code
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/example_04_msgboxes.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example_04_msgboxes.nim b/examples/example_04_msgboxes.nim index aef4bcc..c5a9b66 100755 --- a/examples/example_04_msgboxes.nim +++ b/examples/example_04_msgboxes.nim @@ -30,7 +30,7 @@ button2.onClick = proc(event: ClickEvent) = var button3 = newButton("Example 3") buttons.add(button3) button3.onClick = proc(event: ClickEvent) = - let res = window.msgBox("Hello.\n\nThis message box is created with \"msgBox()\" and has three buttons.", "Title of message box", "Button 1", " Button 2", "Button 3") + let res = window.msgBox("Hello.\n\nThis message box is created with \"msgBox()\" and has three buttons.", "Title of message box", "Button 1", "Button 2", "Button 3") textArea.addLine("Message box closed, result = " & $res) window.show() |
