diff options
| author | Jeff Carr <[email protected]> | 2023-04-03 10:26:47 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-03 10:26:47 -0500 |
| commit | 4b6207743b90968d6b822032a4355e43b6ce6da9 (patch) | |
| tree | 2cb9f13d5e95f14e165f8e41e8484320b7454177 /toolkit/andlabs/slider.go | |
| parent | 0320ebe4bb49ea80761d77af80fa208157ffdb89 (diff) | |
gocui: working towards correct layout
make a gocui widget binary tree
more debugging cleanups
sample button app displays in gocui
geometry logic closer to correct
improvements in gocui layout
continued attempts to clean up tabs
dump binary tree
moving towards proper chan callback()
deprecate Widget.Name
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/slider.go')
| -rw-r--r-- | toolkit/andlabs/slider.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/toolkit/andlabs/slider.go b/toolkit/andlabs/slider.go index 5a16bff..ed96f98 100644 --- a/toolkit/andlabs/slider.go +++ b/toolkit/andlabs/slider.go @@ -10,13 +10,12 @@ import ( func (t *andlabsT) newSlider(a *toolkit.Action) *andlabsT { var newt andlabsT w := a.Widget - // log(debugToolkit, w.Name, w.Type, w.X, w.Y) s := ui.NewSlider(a.X, a.Y) newt.uiSlider = s newt.uiControl = s newt.tw = w - newt.Type = toolkit.Slider + newt.WidgetType = toolkit.Slider newt.wId = a.WidgetId s.OnChanged(func(spin *ui.Slider) { @@ -29,16 +28,13 @@ func (t *andlabsT) newSlider(a *toolkit.Action) *andlabsT { func newSlider(a *toolkit.Action) { var newt *andlabsT - w := a.Widget - log(debugToolkit, "newSlider()", w.Name) + log(debugToolkit, "newSlider()", a.Name) t := andlabs[a.ParentId] if (t == nil) { - log(debugError, "newSlider() ERROR toolkit struct == nil. name=", w.Name) + log(debugError, "newSlider() ERROR toolkit struct == nil. name=", a.Name) return } - // w.X = a.X - // w.Y = a.Y newt = t.newSlider(a) place(a, t, newt) } |
