summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-04 14:54:24 -0600
committerJeff Carr <[email protected]>2025-02-04 14:54:24 -0600
commit6237bf89c3c74abcab8544d7fe93d7b7d89ffbab (patch)
treedf9962724d0f06f134688983bcc227c6c1b9ff65 /window.go
parent8ce9ca882a4031ed9632125ce1efe45560bdeeed (diff)
hmm. still no, but more something or other
Diffstat (limited to 'window.go')
-rw-r--r--window.go18
1 files changed, 11 insertions, 7 deletions
diff --git a/window.go b/window.go
index 83196e2..b0fa9b3 100644
--- a/window.go
+++ b/window.go
@@ -15,6 +15,9 @@ func (tk *guiWidget) redrawWindow(w int, h int) {
}
tk.setFullSize() // might make the green box the right size
+ tk.frame = false
+ tk.hasTabs = false
+
tk.DrawAt(w, h)
tk.setColor(&colorActiveW) // sets the window to Green BG
tk.placeWidgets(w, h) // compute the sizes & places for each widget
@@ -33,14 +36,15 @@ func redoWindows(nextW int, nextH int) {
tmp := fmt.Sprintf("redoWindowsS (%d,%d)", nextW, nextH)
win.dumpWidget(tmp)
- win.frame = false
- win.hasTabs = false
+ win.redrawWindow(nextW, nextH)
+ /*
- // this should make the window the full size and re-draw it
- win.setFullSize() // win.gocuiSetWH(nextW, nextH)
- win.Hide()
- win.DrawAt(nextW, nextH)
- win.Show()
+ // this should make the window the full size and re-draw it
+ win.setFullSize() // win.gocuiSetWH(nextW, nextH)
+ win.Hide()
+ win.DrawAt(nextW, nextH)
+ win.Show()
+ */
tmp = fmt.Sprintf("redoWindowsE (%d,%d)", nextW, nextH)
win.dumpWidget(tmp)