diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-02 17:04:39 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-02 17:04:39 -0400 |
| commit | a1150fb9eabe496eb20da7db8e5f4ecad2dba7d1 (patch) | |
| tree | 48666e05e85fcdc80adc694c8ff4088364a9c364 /test/main.go | |
| parent | 15c10b63de33c3f79053f96c5c32bca2cea43c7b (diff) | |
Added a test of MsgBox() event modality to the standard Area test.
Diffstat (limited to 'test/main.go')
| -rw-r--r-- | test/main.go | 5 |
1 files changed, 4 insertions, 1 deletions
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", "") } } } |
