diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-11 20:44:04 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-11 20:44:04 -0400 |
| commit | 1e338afc4ae366c77da230699550a8be91074fcc (patch) | |
| tree | d50661f700e1232ad6d116a33df8406efa299d8c /test/main.go | |
| parent | a6188ec490f125b9eb6e6ac50637e898381c2522 (diff) | |
Split NewListbox() into NewListbox() (single-selection) and NewMultiSelListbox() (multiple selection); fixed the documentaiton for the Listbox constructor(s) to talk about Listbox and not Combobox, and added some TODOs.
Diffstat (limited to 'test/main.go')
| -rw-r--r-- | test/main.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/main.go b/test/main.go index b2d0fb0..3dbae24 100644 --- a/test/main.go +++ b/test/main.go @@ -9,7 +9,7 @@ import ( var prefsizetest = flag.Bool("prefsize", false, "") func listboxPreferredSizeTest() (*Window, error) { - lb := NewListbox(false, "xxxxx", "y", "zzz") + lb := NewListbox("xxxxx", "y", "zzz") g := NewGrid(1, lb) w := NewWindow("Listbox Preferred Size Test", 300, 300) return w, w.Open(g) @@ -21,7 +21,7 @@ func gridWindow() (*Window, error) { b00 := NewButton("0,0") b01 := NewButton("0,1") b02 := NewButton("0,2") - l11 := NewListbox(true, "1,1") + l11 := NewMultiSelListbox("1,1") b12 := NewButton("1,2") l20 := NewLabel("2,0") c21 := NewCheckbox("2,1") @@ -134,8 +134,8 @@ func myMain() { password := NewPasswordEdit() 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") + lb1 := NewMultiSelListbox("Select One", "Or More", "To Continue") + lb2 := NewListbox("Select", "Only", "One", "Please") i := 0 doAdjustments := func() { cb1.Append("append") |
