Improved the label alignment test.

This commit is contained in:
Pietro Gagliardi 2014-06-25 14:10:43 -04:00
parent b5abbebf0b
commit 76781bc0de
1 changed files with 11 additions and 3 deletions

View File

@ -367,12 +367,20 @@ func myMain() {
var dialog_sret chan struct{} = nil
if *labelAlignTest {
w := NewWindow("Label Align Test", 500, 100)
w.Open(NewHorizontalStack(
s := NewHorizontalStack(NewStandaloneLabel("Label"), NewLineEdit(""))
s.SetStretchy(1)
s2 := NewHorizontalStack(NewLabel("Label"), NewLineEdit(""))
s2.SetStretchy(1)
s = NewVerticalStack(s, s2, Space())
s.SetStretchy(2)
s = NewHorizontalStack(
NewButton("Button"),
NewStandaloneLabel("Standalone"),
NewLabel("Aligned"),
NewButton("Button")))
NewButton("Button"),
s)
s.SetStretchy(4)
NewWindow("Label Align Test", 500, 100).Open(s)
}
mainloop: