Group: comp.lang.tcl


Subject: Additional text for "menu" - for status bar description
From: ZB
Date: 12/2/2007 1:46:26 PM
I'm wondering: couldn't be handy to have another (string) value, "tied" directly to any menu entry, exactly for status bar description? It's so often used, that adding something like "-statusdesc" (to the options listed on tcltk/doc_html/TkCmd/menu.htm) is reasonable to me. Such way it can be then easy fetched using "cget", for further use by any procedure showing the description on status bar label. Currently it always takes to build some intermediate structure, which are holding such description data - but why not solve this "once for always"? One could then make something like: $w.menu add cascade -label "File" -statusdesc "File operations menu" bind Menu <<MenuSelect>> { global menustatus if {[catch {%W entrycget active -statusdesc} label]} { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ set label " " } set menustatus $label update idletasks } -- ZB

Subject: Additional text for "menu" - for status bar description
From: ZB
Date: 12/2/2007 1:54:47 PM
OK, I missed "-title"'s existence; perhaps it can be "misused" for this. I'll try to. -- ZB

Subject: Additional text for "menu" - for status bar description
From: ZB
Date: 12/2/2007 3:29:40 PM
No, "-title" is not suitable for this task. :( So I suppose - there's a need for such addition. -- ZB