diff options
| author | Jeff Carr <[email protected]> | 2025-02-05 14:29:38 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-05 14:29:38 -0600 |
| commit | c328a755c60d1e4bcad64c23077d4bb0f1016537 (patch) | |
| tree | 212a69232a3d55e64771c07d605cd28fe98e7b73 /window.go | |
| parent | 3fa508f786fc6830640ce185145eb07253429f71 (diff) | |
windowFrame is below window widget correctly
Diffstat (limited to 'window.go')
| -rw-r--r-- | window.go | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -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 |
