From 8dd0f88e7ccd8c9517ef39f46ba12dde9737013c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 5 Feb 2025 14:42:50 -0600 Subject: [PATCH] almost there. as in Star Wars almost there --- treeDraw.go | 4 ++-- window.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/treeDraw.go b/treeDraw.go index 3bea50c..adbeb92 100644 --- a/treeDraw.go +++ b/treeDraw.go @@ -46,8 +46,8 @@ func (tk *guiWidget) drawView() { // for windows, make it the full size a = tk.full.w0 b = tk.full.h0 - c = tk.full.w1 - d = tk.full.h1 + c = tk.full.w0 + 20 + d = tk.full.h0 + 2 } } else { if tk.internal { diff --git a/window.go b/window.go index 6948029..487f4d3 100644 --- a/window.go +++ b/window.go @@ -54,6 +54,10 @@ func (tk *guiWidget) redrawWindow(w int, h int) { // tk.windowFrame.drawView() tk.windowFrame.Show() me.baseGui.SetViewBeneath(tk.windowFrame.cuiName, tk.cuiName, 1) + me.baseGui.SetView(tk.windowFrame.cuiName, tk.windowFrame.full.w0, tk.windowFrame.full.h0, tk.windowFrame.full.w1, tk.windowFrame.full.h1, 0) + tk.hideWidgets() + tk.showWidgets() + // tk.windowFrame.drawView() } // re-draws the buttons for each of the windows