Added a test of MsgBox() event modality to the standard Area test.

This commit is contained in:
Pietro Gagliardi 2014-06-02 17:04:39 -04:00
parent 15c10b63de
commit a1150fb9ea
1 changed files with 4 additions and 1 deletions

View File

@ -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", "")
}
}
}