diff --git a/test/main.go b/test/main.go index d2c21d1..16dcd55 100644 --- a/test/main.go +++ b/test/main.go @@ -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 {