summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
Diffstat (limited to 'window.go')
-rw-r--r--window.go19
1 files changed, 15 insertions, 4 deletions
diff --git a/window.go b/window.go
index 50c08a3..6948029 100644
--- a/window.go
+++ b/window.go
@@ -42,8 +42,18 @@ func (tk *guiWidget) redrawWindow(w int, h int) {
tk.windowFrame.makeTK([]string{"windowFrame"})
}
tk.windowFrame.MoveToOffset(w, h+2)
- tk.windowFrame.drawView()
+ r := tk.getFullSize()
+ tk.windowFrame.gocuiSize.w0 = r.w0
+ tk.windowFrame.gocuiSize.w1 = r.w1
+ tk.windowFrame.gocuiSize.h0 = r.h0
+ tk.windowFrame.gocuiSize.h1 = r.h1
+ tk.windowFrame.full.w0 = r.w0
+ tk.windowFrame.full.w1 = r.w1
+ tk.windowFrame.full.h0 = r.h0
+ tk.windowFrame.full.h1 = r.h1
+ // tk.windowFrame.drawView()
tk.windowFrame.Show()
+ me.baseGui.SetViewBeneath(tk.windowFrame.cuiName, tk.cuiName, 1)
}
// re-draws the buttons for each of the windows
@@ -73,19 +83,20 @@ func (win *guiWidget) addWindowFrame(wId int) *tree.Node {
// store the internal toolkit information
tk := new(guiWidget)
tk.frame = true
- tk.labelN = "DropBox text"
+ tk.labelN = "windowFrame text"
+ tk.internal = true
tk.node = n
if tk.node.Parent == nil {
tk.node.Parent = me.treeRoot
}
// copy the data from the action message
- tk.node.State.Label = "DropBox"
+ tk.node.State.Label = "windowFrame"
// set the name used by gocui to the id
tk.cuiName = fmt.Sprintf("%d DR", wId)
- tk.color = &colorFlag
+ tk.color = &colorGroup
// add this new widget on the binary tree
tk.parent = win