From b8ef0bb05dc14bc4291f3d156b199fa125cdb9d7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 20 Oct 2022 06:55:42 -0500 Subject: 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 --- toolkit/andlabs/old/seperator.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 toolkit/andlabs/old/seperator.go (limited to 'toolkit/andlabs/old/seperator.go') diff --git a/toolkit/andlabs/old/seperator.go b/toolkit/andlabs/old/seperator.go new file mode 100644 index 0000000..ca152a8 --- /dev/null +++ b/toolkit/andlabs/old/seperator.go @@ -0,0 +1,25 @@ +package gui + +import "log" +import "os" + +import "github.com/andlabs/ui" +import _ "github.com/andlabs/ui/winmanifest" + +func HorizontalBreak(box *GuiBox) { + log.Println("VerticalSeparator added to box =", box.Name) + tmp := ui.NewHorizontalSeparator() + if (box == nil) { + return + } + if (box.UiBox == nil) { + return + } + box.UiBox.Append(tmp, false) +} + +func VerticalBreak(box *GuiBox) { + log.Println("VerticalSeparator added to box =", box.Name) + tmp := ui.NewVerticalSeparator() + box.UiBox.Append(tmp, false) +} -- cgit v1.2.3