summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/main.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/main.go b/test/main.go
index 11cf19f..af886c6 100644
--- a/test/main.go
+++ b/test/main.go
@@ -40,23 +40,23 @@ func myMain() {
w.Closing = Event()
b := NewButton("Click Me")
b2 := NewButton("Or Me")
- s2 := NewStack(Horizontal, b, b2)
+ s2 := NewHorizontalStack(b, b2)
c := NewCheckbox("Check Me")
cb1 := NewEditableCombobox("You can edit me!", "Yes you can!", "Yes you will!")
cb2 := NewCombobox("You can't edit me!", "No you can't!", "No you won't!")
e := NewLineEdit("Enter text here too")
l := NewLabel("This is a label")
b3 := NewButton("List Info")
- s3 := NewStack(Horizontal, l, b3)
+ s3 := NewHorizontalStack(l, b3)
s3.SetStretchy(0)
// s3.SetStretchy(1)
pbar := NewProgressBar()
prog := 0
incButton := NewButton("Inc")
decButton := NewButton("Dec")
- sincdec := NewStack(Horizontal, incButton, decButton)
+ sincdec := NewHorizontalStack(incButton, decButton)
password := NewPasswordEdit()
- s0 := NewStack(Vertical, s2, c, cb1, cb2, e, s3, pbar, sincdec, Space(), password)
+ s0 := NewVerticalStack(s2, c, cb1, cb2, e, s3, pbar, sincdec, Space(), password)
s0.SetStretchy(8)
lb1 := NewListbox(true, "Select One", "Or More", "To Continue")
lb2 := NewListbox(false, "Select", "Only", "One", "Please")
@@ -69,10 +69,10 @@ func myMain() {
i++
}
doAdjustments()
- s1 := NewStack(Vertical, lb2, lb1)
+ s1 := NewVerticalStack(lb2, lb1)
s1.SetStretchy(0)
s1.SetStretchy(1)
- s := NewStack(Horizontal, s1, s0)
+ s := NewHorizontalStack(s1, s0)
s.SetStretchy(0)
s.SetStretchy(1)
err := w.Open(s)