trying to handle Flag widget clicks
This commit is contained in:
parent
fdca4d2601
commit
8d007ec10d
|
@ -13,7 +13,7 @@ import (
|
||||||
// the debugging is way way better now with it being visible in the Stdout window
|
// the debugging is way way better now with it being visible in the Stdout window
|
||||||
// so now it's possible to redo all this and make it better
|
// so now it's possible to redo all this and make it better
|
||||||
func (tk *guiWidget) doWidgetClick(w int, h int) {
|
func (tk *guiWidget) doWidgetClick(w int, h int) {
|
||||||
switch tk.WidgetType {
|
switch tk.node.WidgetType {
|
||||||
case widget.Window:
|
case widget.Window:
|
||||||
// if there is a current window, hide it
|
// if there is a current window, hide it
|
||||||
if me.currentWindow != nil {
|
if me.currentWindow != nil {
|
||||||
|
@ -82,6 +82,12 @@ func (tk *guiWidget) doWidgetClick(w int, h int) {
|
||||||
log.Log(GOCUI, "do the dropdown here")
|
log.Log(GOCUI, "do the dropdown here")
|
||||||
tk.showDropdown()
|
tk.showDropdown()
|
||||||
me.dropdownW = tk
|
me.dropdownW = tk
|
||||||
|
case widget.Flag:
|
||||||
|
log.Log(GOCUI, "flag widget found!")
|
||||||
|
tk.dumpWidget("flag click")
|
||||||
|
case widget.Stdout:
|
||||||
|
log.Log(GOCUI, "stdout widget found!")
|
||||||
|
tk.dumpWidget("stdout click")
|
||||||
default:
|
default:
|
||||||
tk.dumpWidget("blank click()")
|
tk.dumpWidget("blank click()")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue