From 02d6a03ba3a657aa7b50d072771361236bb207a3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 28 Jun 2014 16:02:50 -0400 Subject: Decided to make dialogs code-modal; will figure out how to get the behavior I want on Mac OS X - http://stackoverflow.com/questions/24468620/how-do-i-create-a-nested-run-loop-after-nsalert-beginsheetmodalforwindow-tha - Now to see if Windows works... --- test/main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/main.go') diff --git a/test/main.go b/test/main.go index 93ee5fc..7d3ddd9 100644 --- a/test/main.go +++ b/test/main.go @@ -559,14 +559,13 @@ func (handler *dialoghandler) Event(e Event, d Data) { if e == Clicked { switch d { case handler.bMsgBox: -// dialog_sret = handler.w.MsgBox("Message Box", "Dismiss") +// handler.send(CustomEvent, "DIALOG") + handler.w.MsgBox("Message Box", "Dismiss") // handler.send(CustomEvent, nil) case handler.bMsgBoxError: -// dialog_sret = handler.w.MsgBoxError("Message Box", "Dismiss") +// handler.send(CustomEvent, "DIALOG") + handler.w.MsgBoxError("Message Box", "Dismiss") // handler.send(CustomEvent, nil) -// case <-dialog_sret: -// dialog_sret = nil -// handler.send(CustomEvent + 1, nil) case handler.bCenter: handler.w.Center() } -- cgit v1.2.3