summaryrefslogtreecommitdiff
path: root/widget.go
diff options
context:
space:
mode:
Diffstat (limited to 'widget.go')
-rw-r--r--widget.go23
1 files changed, 16 insertions, 7 deletions
diff --git a/widget.go b/widget.go
index a7747e8..d72f957 100644
--- a/widget.go
+++ b/widget.go
@@ -65,7 +65,7 @@ func setupCtrlDownWidget() {
func (w *guiWidget) deleteView() {
// make sure the view isn't really there
- log.Log(NOW, "deleteView()", w.cuiName, w.WidgetType, w.node.WidgetId)
+ log.Log(GOCUI, "deleteView()", w.cuiName, w.WidgetType, w.node.WidgetId)
me.baseGui.DeleteView(w.cuiName)
w.v = nil
}
@@ -75,8 +75,8 @@ func (w *guiWidget) IsCurrent() bool {
return w.isCurrent
}
if w.node.WidgetType == widget.Window {
- log.Log(NOW, "IsCurrent() found current window", w.cuiName, w.String())
- log.Log(NOW, "IsCurrent() window w.isCurrent =", w.isCurrent)
+ log.Log(GOCUI, "IsCurrent() found current window", w.cuiName, w.String())
+ log.Log(GOCUI, "IsCurrent() window w.isCurrent =", w.isCurrent)
return w.isCurrent
}
if w.node.WidgetType == widget.Root {
@@ -125,15 +125,24 @@ func (w *guiWidget) Show() {
return
}
+ if w.node.WidgetType == widget.Dropdown {
+ log.Log(NOW, "Show() dropdown", w.cuiName, w.String())
+ log.Log(NOW, "Show() dropdown n.Strings() =", w.node.Strings())
+ }
+ if w.node.WidgetType == widget.Combobox {
+ log.Log(NOW, "Show() dropdown", w.cuiName, w.String())
+ log.Log(NOW, "Show() dropdown n.Strings() =", w.node.Strings())
+ }
+
// if the widget is not in the current displayed windo
// then ignore it
- log.Log(NOW, "Show() widget =", w.cuiName, w.String())
- log.Log(NOW, "Show() w.IsCurrent() returned", w.IsCurrent())
+ log.Log(GOCUI, "Show() widget =", w.cuiName, w.String())
+ log.Log(GOCUI, "Show() w.IsCurrent() returned", w.IsCurrent())
if !w.IsCurrent() {
- log.Log(NOW, "Show() NOT drawing", w.cuiName, w.String())
+ log.Log(GOCUI, "Show() NOT drawing", w.cuiName, w.String())
return
}
- log.Log(NOW, "Show() drawing", w.cuiName, w.String())
+ log.Log(GOCUI, "Show() drawing", w.cuiName, w.String())
// finally, check if the widget State is hidden or not
if w.node.Hidden() {