From 2a5734892a85804b6c44a0cd8dd22d20fed21d96 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Feb 2025 19:00:00 -0600 Subject: trying to fix Hidden() to use the parent --- eventMouseClick.go | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'eventMouseClick.go') diff --git a/eventMouseClick.go b/eventMouseClick.go index 0d09007..5e21d02 100644 --- a/eventMouseClick.go +++ b/eventMouseClick.go @@ -76,10 +76,8 @@ func (tk *guiWidget) doWindowClick() { func (tk *guiWidget) doWidgetClick(w int, h int) { switch tk.node.WidgetType { case widget.Window: - // tk.dumpWidget("doWidgetClick()") tk.doWindowClick() return - case widget.Group: case widget.Checkbox: if tk.node.State.Checked { log.Log(WARN, "checkbox is being set to false") @@ -91,33 +89,12 @@ func (tk *guiWidget) doWidgetClick(w int, h int) { tk.setCheckbox() } me.myTree.SendUserEvent(tk.node) - case widget.Grid: - /* - newR := tk.realGocuiSize() - tk.placeGrid(newR.w0, newR.h0) - tk.showWidgets() - */ - case widget.Box: - /* - if tk.node.State.Direction == widget.Horizontal { - log.Log(GOCUI, "BOX IS HORIZONTAL", tk.String()) - } else { - log.Log(GOCUI, "BOX IS VERTICAL", tk.String()) - } - tk.placeWidgets(tk.startW, tk.startH) - tk.toggleTree() - */ case widget.Button: me.myTree.SendFromUser(tk.node) case widget.Combobox: tk.showDropdown() case widget.Dropdown: tk.showDropdown() - case widget.Stdout: - /* - log.Log(GOCUI, "stdout widget found!") - tk.dumpWidget("stdout click") - */ case widget.Flag: tk.dropdownClicked(w, h) default: -- cgit v1.2.3