For Programmers: Free Programming Magazines  


Home > Archive > Tcl > October 2005 > tktreectrl and tooltip









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author tktreectrl and tooltip
matben@users.sourceforge.net

2005-10-25, 3:57 am

I was trying to do a tooltip interface for treectrl similar to what you
can do with a canvas using:
pathName bind tagOrId ?sequence? ?command?
$w bind $id <Enter> ...
$w bind $id <Leave> ... etc
I admit that I do not yet fully understand the notify event system, but
can't see that there is any way to bind explicitly to items, or am I
missing something?

Mats

Tim Baker

2005-10-25, 9:57 pm

>I was trying to do a tooltip interface for treectrl similar to what you
> can do with a canvas using:
> pathName bind tagOrId ?sequence? ?command?
> $w bind $id <Enter> ...
> $w bind $id <Leave> ... etc
> I admit that I do not yet fully understand the notify event system, but
> can't see that there is any way to bind explicitly to items, or am I
> missing something?



You're right, you can't bind to individual items. The "Help Contents" demo
changes the appearance of items when the mouse moves. This is done with
the Tk [bind] command. You might want to try something like that.

-- Tim


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com