From 89a4ecc77c7833671913dbc7923db5329f22c447 Mon Sep 17 00:00:00 2001 From: trustable-code Date: Mon, 24 Sep 2018 19:57:05 +0200 Subject: Improve messages boxes and buttons - Message box: button1 will be focused - Buttons: Key_Return and Key_Space are now handled in platform-independent code --- examples/example_04_msgboxes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/example_04_msgboxes.nim') 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() -- cgit v1.2.3