summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-25 11:44:22 -0400
committerPietro Gagliardi <[email protected]>2014-06-25 11:44:22 -0400
commit55c636b1e3823ec73a9b10d78a03528a54e63bb1 (patch)
treed1a553be7a557879bb2dab0080b09c8d6aa5caeb
parente00eebf5803bfdc1b41600e4ceb181d074ec63c5 (diff)
Added new Label alignment test.
-rw-r--r--test/main.go10
1 files changed, 10 insertions, 0 deletions
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 {