Added new Label alignment test.
This commit is contained in:
parent
e00eebf580
commit
55c636b1e3
10
test/main.go
10
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 {
|
||||
|
|
Loading…
Reference in New Issue