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/checkbox.go | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 toolkit/andlabs/checkbox.go (limited to 'toolkit/andlabs/checkbox.go') diff --git a/toolkit/andlabs/checkbox.go b/toolkit/andlabs/checkbox.go deleted file mode 100644 index 4c37fd6..0000000 --- a/toolkit/andlabs/checkbox.go +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "github.com/andlabs/ui" - _ "github.com/andlabs/ui/winmanifest" -) - -func (p *node) newCheckbox(n *node) { - newt := new(guiWidget) - log(debugToolkit, "newCheckbox()", n.Name, n.WidgetType) - - newt.uiCheckbox = ui.NewCheckbox(n.Text) - newt.uiControl = newt.uiCheckbox - - newt.uiCheckbox.OnToggled(func(spin *ui.Checkbox) { - n.B = newt.checked() - log(debugChange, "val =", n.B) - n.doUserEvent() - }) - - n.tk = newt - p.place(n) -} - -func (t *guiWidget) checked() bool { - return t.uiCheckbox.Checked() -} -- cgit v1.2.3