summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-25 18:16:51 -0600
committerJeff Carr <[email protected]>2024-01-25 18:16:51 -0600
commitb88cca4b0d5f8948e682d6c70752c23ec7808d53 (patch)
tree9eb643acc4f3a8f2e6b231a9a27e5afb0ac0db43 /window.go
parentacf5473cc5928f053b9ffe7be1e903398b76e86a (diff)
checkbox state works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'window.go')
-rw-r--r--window.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/window.go b/window.go
index f158206..d1ff8b7 100644
--- a/window.go
+++ b/window.go
@@ -77,14 +77,17 @@ func (n *Node) PixelSize(w, h int) *Node {
}
*/
+// when a window is redrawn, every widget in the window
+// needs to be sent to the toolkit
func (n *Node) TestDraw() {
if n == nil {
return
}
// enable and
- n.hidden = false
+ // n.hidden = false
n.changed = true
+ n.visable = true
log.Verbose("TestDraw() sending widget.Add", n.id, n.WidgetType, n.progname)
sendAction(n, widget.Add)