summaryrefslogtreecommitdiff
path: root/andlabs/checkbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'andlabs/checkbox.go')
-rw-r--r--andlabs/checkbox.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/andlabs/checkbox.go b/andlabs/checkbox.go
deleted file mode 100644
index 221edb4..0000000
--- a/andlabs/checkbox.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package main
-
-import (
- "go.wit.com/toolkits/tree"
-
- "go.wit.com/dev/andlabs/ui"
- _ "go.wit.com/dev/andlabs/ui/winmanifest"
-)
-
-func newCheckbox(p *tree.Node, n *tree.Node) {
- if notNew(n) {
- return
- }
- newt := new(guiWidget)
-
- newt.uiCheckbox = ui.NewCheckbox(n.GetLabel())
- newt.uiControl = newt.uiCheckbox
-
- newt.uiCheckbox.OnToggled(func(spin *ui.Checkbox) {
- n.SetValue(newt.checked())
- me.myTree.DoUserEvent(n)
- })
-
- n.TK = newt
- place(p, n)
-}
-
-func (t *guiWidget) checked() bool {
- return t.uiCheckbox.Checked()
-}