summaryrefslogtreecommitdiff
path: root/toolkit/andlabs/checkbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/andlabs/checkbox.go')
-rw-r--r--toolkit/andlabs/checkbox.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/toolkit/andlabs/checkbox.go b/toolkit/andlabs/checkbox.go
index f73a284..69ba060 100644
--- a/toolkit/andlabs/checkbox.go
+++ b/toolkit/andlabs/checkbox.go
@@ -9,12 +9,14 @@ import (
func (t *andlabsT) newCheckbox(a *toolkit.Action) *andlabsT {
var newt andlabsT
w := a.Widget
- log(debugToolkit, "newCheckbox()", w.Name, w.Type)
+ log(debugToolkit, "newCheckbox()", a.Name, a.WidgetType)
newt.tw = w
- newt.Type = w.Type
+ newt.WidgetType = a.WidgetType
newt.wId = a.WidgetId
+ newt.Name = a.Name
+ newt.Text = a.Text
- newt.uiCheckbox = ui.NewCheckbox(w.Name)
+ newt.uiCheckbox = ui.NewCheckbox(a.Text)
newt.uiControl = newt.uiCheckbox
newt.uiCheckbox.OnToggled(func(spin *ui.Checkbox) {