diff options
| author | Jeff Carr <[email protected]> | 2024-01-01 15:43:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-01 15:43:50 -0600 |
| commit | 4e7bbd89900a733593f0848778103c1cf1a7145d (patch) | |
| tree | 22cd22124dd3ecba7c2a866b882d39aaf790d670 /toolkit/andlabs/combobox.go | |
| parent | 53ce3a8252090d5fb75d7fc1e3cd75a72c1415c6 (diff) | |
reorg to final resting place at go.wit.com/gui/guiv0.9.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/combobox.go')
| -rw-r--r-- | toolkit/andlabs/combobox.go | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/toolkit/andlabs/combobox.go b/toolkit/andlabs/combobox.go deleted file mode 100644 index 283a29d..0000000 --- a/toolkit/andlabs/combobox.go +++ /dev/null @@ -1,41 +0,0 @@ -package main - -import ( - "github.com/andlabs/ui" - _ "github.com/andlabs/ui/winmanifest" -) - -func (p *node) newCombobox(n *node) { - newt := new(guiWidget) - log(debugToolkit, "newCombobox() START", n.Name) - - cb := ui.NewEditableCombobox() - newt.uiEditableCombobox = cb - newt.uiControl = cb - - // initialize the index - newt.c = 0 - newt.val = make(map[int]string) - - cb.OnChanged(func(spin *ui.EditableCombobox) { - n.S = spin.Text() - n.doUserEvent() - }) - - n.tk = newt - p.place(n) -} - -func (t *guiWidget) AddComboboxName(title string) { - t.uiEditableCombobox.Append(title) - if (t.val == nil) { - log(debugToolkit, "make map didn't work") - return - } - t.val[t.c] = title - - // If this is the first menu added, set the dropdown to it - // if (t.c == 0) { - // } - t.c = t.c + 1 -} |
