diff options
Diffstat (limited to 'toolkit/andlabs/button.go')
| -rw-r--r-- | toolkit/andlabs/button.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/toolkit/andlabs/button.go b/toolkit/andlabs/button.go index 94e2966..bc58da2 100644 --- a/toolkit/andlabs/button.go +++ b/toolkit/andlabs/button.go @@ -23,14 +23,15 @@ func newButton(a *toolkit.Action) { b = ui.NewButton(a.Text) newt.uiButton = b newt.uiControl = b - newt.tw = a.Widget + newt.wId = a.WidgetId + // newt.tw = a.Widget newt.WidgetType = a.WidgetType newt.parent = t + place(a, t, newt) + b.OnClicked(func(*ui.Button) { - newt.commonChange(newt.tw, a.WidgetId) + newt.doUserEvent() }) - place(a, t, newt) - // mapWidgetsToolkits(a, newt) } |
