From 55c636b1e3823ec73a9b10d78a03528a54e63bb1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 25 Jun 2014 11:44:22 -0400 Subject: [PATCH] Added new Label alignment test. --- test/main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 {