From a1150fb9eabe496eb20da7db8e5f4ecad2dba7d1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 2 Jun 2014 17:04:39 -0400 Subject: [PATCH] Added a test of MsgBox() event modality to the standard Area test. --- test/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/main.go b/test/main.go index 674e7dc..d5786f7 100644 --- a/test/main.go +++ b/test/main.go @@ -201,7 +201,8 @@ func areaTest() { sizeStack.SetStretchy(0) sizeStack.SetStretchy(1) sizeStack.SetStretchy(2) - sizeStack = NewHorizontalStack(sizeStack, Space(), Space()) + modaltest := NewButton("Modal") + sizeStack = NewHorizontalStack(sizeStack, Space(), modaltest) sizeStack.SetStretchy(0) sizeStack.SetStretchy(1) sizeStack.SetStretchy(2) @@ -225,6 +226,8 @@ func areaTest() { height, err := strconv.Atoi(heightbox.Text()) if err != nil { println(err); continue } a.SetSize(width, height) + case <-modaltest.Clicked: + MsgBox("Modal Test", "") } } }