Cursor help on menu items
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Cursor help on menu items

From: Mona <impm01@yahoo.com>
Date: Thu Dec 22 2005 - 18:55:56 CET

Hi all,

I am trying to display a context-sensitive help on the menu item.
I am using
bind MyMenuPath <<MenuSelect>> "ShowHelp %W %X %Y";

proc ShowHelp { W X Y } {
if {[$W index active] != "none" } {
//Somehow to display the help
}

Now, what's the best way to display the help. Is there a TK widget I
can use?
Also, how can I know that the cursor has moved out of the menu, in
order to undisplay the help?

Thanks in advance,
Mona.
Received on Fri Dec 23 19:03:00 2005