summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-02 14:49:17 -0600
committerJeff Carr <[email protected]>2024-02-02 14:49:17 -0600
commitee0f84fd8ef5993a6c374c8ee4e22c837ca39d97 (patch)
tree6b3f2800ddeb92c32d08c537cf1b0c1692b4a166 /window.go
parent4800fe662002c1e0192614f60c179b6d46c43cae (diff)
finds the item chosen from the dropdown list
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'window.go')
-rw-r--r--window.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/window.go b/window.go
new file mode 100644
index 0000000..0918c45
--- /dev/null
+++ b/window.go
@@ -0,0 +1,26 @@
+package main
+
+import (
+ "go.wit.com/widget"
+)
+
+func (w *guiWidget) redoWindows(nextW int, nextH int) {
+ var startW int = nextW
+ var startH int = nextH
+
+ for _, child := range w.children {
+ if child.node.WidgetType != widget.Window {
+ continue
+ }
+
+ child.frame = false
+ child.hasTabs = false
+
+ child.gocuiSetWH(nextW, nextH)
+ child.deleteView()
+ child.showView()
+ sizeW := child.gocuiSize.Width()
+ nextW += sizeW + 4
+ child.redoWindows(startW+3, startH+2)
+ }
+}