summaryrefslogtreecommitdiff
path: root/checkbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'checkbox.go')
-rw-r--r--checkbox.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/checkbox.go b/checkbox.go
index 326406e..3101507 100644
--- a/checkbox.go
+++ b/checkbox.go
@@ -3,6 +3,7 @@ package main
import (
"go.wit.com/log"
"go.wit.com/toolkits/tree"
+ "go.wit.com/widget"
"go.wit.com/dev/andlabs/ui"
_ "go.wit.com/dev/andlabs/ui/winmanifest"
@@ -32,3 +33,12 @@ func newCheckbox(p *tree.Node, n *tree.Node) {
func (t *guiWidget) checked() bool {
return t.uiCheckbox.Checked()
}
+
+func setChecked(n *tree.Node, b bool) {
+ if n.WidgetType != widget.Checkbox {
+ }
+ var tk *guiWidget
+ tk = n.TK.(*guiWidget)
+
+ tk.uiCheckbox.SetChecked(b)
+}