From 4e7bbd89900a733593f0848778103c1cf1a7145d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 1 Jan 2024 15:43:50 -0600 Subject: reorg to final resting place at go.wit.com/gui/gui Signed-off-by: Jeff Carr --- toolkit/andlabs/combobox.go | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 toolkit/andlabs/combobox.go (limited to 'toolkit/andlabs/combobox.go') 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 -} -- cgit v1.2.3