notsure
This commit is contained in:
parent
65622d01cd
commit
acb0e43945
|
@ -25,13 +25,19 @@ func (tk *guiWidget) doWidgetClick(w int, h int) {
|
|||
// now set this window as the current window
|
||||
me.currentWindow = tk
|
||||
me.currentWindow.isCurrent = true
|
||||
tk.active = false
|
||||
|
||||
full := tk.getFullSize()
|
||||
tk.gocuiSize.w1 = full.w1
|
||||
tk.gocuiSize.h1 = full.h1
|
||||
|
||||
// draw the current window
|
||||
w := tk.gocuiSize.w0 + 4
|
||||
h := tk.gocuiSize.h0 + 4
|
||||
tk.DrawAt(w, h)
|
||||
tk.setColor(&colorActiveW)
|
||||
tk.DrawAt(3, 2)
|
||||
tk.placeWidgets(3, 2) // compute the sizes & places for each widget
|
||||
tk.active = false
|
||||
tk.showWidgets()
|
||||
tk.placeWidgets(w, h) // compute the sizes & places for each widget
|
||||
case widget.Group:
|
||||
if tk.active {
|
||||
tk.active = false
|
||||
|
|
|
@ -21,6 +21,12 @@ func (w *guiWidget) DrawAt(offsetW, offsetH int) {
|
|||
w.dumpWidget("DrawAt()")
|
||||
}
|
||||
|
||||
func (w *guiWidget) simpleDrawAt(offsetW, offsetH int) {
|
||||
w.setColor(&colorActiveW)
|
||||
w.active = false
|
||||
w.dumpWidget("simpleDrawAt()")
|
||||
}
|
||||
|
||||
func (w *guiWidget) toggleTree() {
|
||||
if toggle {
|
||||
w.drawTree(toggle)
|
||||
|
|
Loading…
Reference in New Issue