Added new Label alignment test.

This commit is contained in:
Pietro Gagliardi 2014-06-25 11:44:22 -04:00
parent e00eebf580
commit 55c636b1e3
1 changed files with 10 additions and 0 deletions

View File

@ -275,6 +275,7 @@ func areaboundsTest() {
}
var dialogTest = flag.Bool("dialog", false, "add Window.MsgBox() channel test window")
var labelAlignTest = flag.Bool("label", false, "show Label Alignment test window")
func myMain() {
if *doArea {
@ -365,6 +366,15 @@ func myMain() {
var dialog_sret chan struct{} = nil
if *labelAlignTest {
w := NewWindow("Label Align Test", 500, 100)
w.Open(NewHorizontalStack(
NewButton("Button"),
NewStandaloneLabel("Standalone"),
NewLabel("Aligned"),
NewButton("Button")))
}
mainloop:
for {
select {