diff options
Diffstat (limited to 'window.go')
| -rw-r--r-- | window.go | 21 |
1 files changed, 6 insertions, 15 deletions
@@ -19,7 +19,7 @@ func (tk *guiWidget) setTitle(s string) { if tk.v == nil { return } - tk.setColorWindowTitle() + tk.setColorWindowTitleActive() rect := tk.gocuiSize rect.w1 = rect.w0 + tk.full.Width() + 1 // rect.h1 = rect.h0 + 1 @@ -56,7 +56,8 @@ func (tk *guiWidget) redrawWindow(w int, h int) { tk.hasTabs = false tk.DrawAt(w, h) - tk.setColor(&colorActiveW) // sets the window to Green BG + // tk.setColor(&colorActiveW) // sets the window to Green BG + tk.setColorWindowTitleActive() if tk.window.collapsed { // don't show anything but the title bar @@ -70,22 +71,11 @@ func (tk *guiWidget) redrawWindow(w int, h int) { tk.full.h0 = tk.force.h0 tk.setFullSize() - /* - v, err := me.baseGui.SetView(tk.cuiName, tk.gocuiSize.w0, tk.gocuiSize.h0, tk.gocuiSize.w1, tk.gocuiSize.h1, 0) - if err != nil { - log.Info("crap. got an err", err) - } - if tk.v != v { - log.Info("crap. got another problem v != tk.v") - } - */ tk.Show() tk.v.Clear() fmt.Fprint(tk.v, "ZZZ"+tk.GetText()) tk.showWidgets() - // RE-VERIFY THIS CAN'T BE DONE IN A BETTER WAY. However, for now, this works finally so I am leaving it alone - if tk.windowFrame == nil { tk.addWindowFrameTK(0 - tk.node.WidgetId) tk.windowFrame.node.State.Label = "" // temporary name. blank out when ready for release @@ -116,7 +106,7 @@ func (tk *guiWidget) redrawWindow(w int, h int) { tk.showWidgets() // draw the window title - tk.setTitle(tk.node.GetLabel() + " jwc") + tk.setTitle(tk.node.GetLabel()) } // re-draws the buttons for each of the windows @@ -195,7 +185,8 @@ func (tk *guiWidget) makeWindowActive() { for _, tk := range me.allwin { tk.window.order += 1 tk.window.active = false - tk.setColor(&colorWindow) // color for inactive windows + // tk.setColor(&colorWindow) // color for inactive windows + tk.setColorWindowTitle() } // set this window as the active one |
