diff options
| author | Jeff Carr <[email protected]> | 2022-10-20 06:55:42 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2022-10-20 06:55:42 -0500 |
| commit | b8ef0bb05dc14bc4291f3d156b199fa125cdb9d7 (patch) | |
| tree | 71280d7f01805dfbd430f71df16858079686b8fc /cmds/consolemouse/main.go | |
| parent | f3af1f5b7ff78b3f73d7510622fc9633dec36d35 (diff) | |
Squashed commit of the following:
all non binary tree structs are gone (almost all)
Use names from https://en.wikipedia.org/wiki/Graphical_widget
toolkit andlabs/ui is isolated from being accessable
all direct references to andlabs are removed
working dropdown widgets
add debugging more buttons and windows
Diffstat (limited to 'cmds/consolemouse/main.go')
| -rw-r--r-- | cmds/consolemouse/main.go | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/cmds/consolemouse/main.go b/cmds/consolemouse/main.go index 44ad18d..3f4ce58 100644 --- a/cmds/consolemouse/main.go +++ b/cmds/consolemouse/main.go @@ -32,26 +32,17 @@ func initGUI() { addDemoTab(w, "A Second Tab") } -func addDemoTab(window *gui.Node, title string) { +func addDemoTab(w *gui.Node, title string) { var newNode, g *gui.Node - newNode = window.AddTab(title, nil) - log.Println("addDemoTab() newNode.Dump") - log.Println("addDemoTab() newNode.Dump") - log.Println("addDemoTab() newNode.Dump") - log.Println("addDemoTab() newNode.Dump") - newNode.Dump() - newNode.Toolkit.Dump() + newNode = w.NewTab(title) g = newNode.NewGroup("group 1") - log.Println("addDemoTab() g.Dump") - log.Println("addDemoTab() g.Dump") - log.Println("addDemoTab() g.Dump") - log.Println("addDemoTab() g.Dump") - g.Dump() - g.Toolkit.Dump() - // myExit(nil) - g.AddComboBox("demoCombo2", "more 1", "more 2", "more 3") + + dd := g.NewDropdown("demoCombo2") + dd.AddDropdown("more 1") + dd.AddDropdown("less 2") + dd.AddDropdown("foo 3") } func myExit(n *gui.Node) { |
