From d5d11d9ca9c69e01715d191eb63ead18d8d7ff05 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 27 Apr 2023 10:04:49 -0500 Subject: andlabs: grid and checkbox to binary tree Signed-off-by: Jeff Carr --- toolkit/andlabs/grid.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'toolkit/andlabs/grid.go') diff --git a/toolkit/andlabs/grid.go b/toolkit/andlabs/grid.go index 61dea17..60e2ebf 100644 --- a/toolkit/andlabs/grid.go +++ b/toolkit/andlabs/grid.go @@ -3,8 +3,6 @@ package main import ( "github.com/andlabs/ui" _ "github.com/andlabs/ui/winmanifest" - - "git.wit.org/wit/gui/toolkit" ) // Grid numbering by (X,Y) @@ -12,19 +10,18 @@ import ( // -- (1,1) -- (2,1) -- (3,1) -- // -- (1,2) -- (2,1) -- (3,1) -- // ----------------------------- -func newGrid(a *toolkit.Action) { +func (p *node) newGrid(n *node) { var newt *andlabsT - log(debugToolkit, "newGrid()", a.WidgetId, "to", a.ParentId) + log(debugToolkit, "newGrid()", n.WidgetId, "to", n.ParentId) newt = new(andlabsT) c := ui.NewGrid() newt.uiGrid = c newt.uiControl = c - newt.WidgetType = toolkit.Grid newt.gridX = 0 newt.gridY = 0 - t := andlabs[a.ParentId] - place(a, t, newt) + n.tk = newt + p.place(n) } -- cgit v1.2.3