Thanks, Jeff.  So it sounds like the tooltip pkg had the same
limitation, until you just updated it.

Is there any way for me to get the updated tooltip pkg v1.4.4?  Will the
DynamicHelp widget work properly in the next Tcl/Tk release?

I'd use the toolip pkg, but I make quite a bit of use of the DynamicHelp
'command' parameter, which I don't think the tooltip pkg has...although
if it handled the canvas tag expressions, I'd give it a try.

Lastly, related to tooltips in Tcl, is there a straightforward way to
use them with Listboxes?  similar to menuitems and canvas items?

Thanks, again,
Mike

-----Original Message-----
From: Jeff Hobbs [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 01, 2008 6:41 PM
To: Mike Ignatoski
Cc: tcltk@perl.org
Subject: Re: DynamicHelp & canvas tags


Mike Ignatoski wrote:
> I have a Tkx app, and I'm using the DynamicHelp BWidget for canvas 
> items.  The balloon help works fine, except that I can only get it to 
> work for items identified using a single tag.  I cannot get it to work

> for 'tag expressions'.
>  
> I'm trying this:
>  
>   Tkx::DynamicHelp__add ( $canvas, -item=> 'this_tag && !that_tag', 
> ...
>  
> Is there a different syntax for this situation?

Can't say why that wouldn't work.  It boils down to an addtag/withtag 
call on the canvas, which does support the logical expressions.

Ah, I see it now.  It registers correctly, but then is too conservative 
in the popup phase checking for the item.  It actually seems quite 
screwy in its implementation for canvas items.  It looks like it would 
work by registering each individually after you do a 'find_withtag' 
using that expression.  The same would be true if you used the 
alternative Tkx::tooltip__tooltip (tooltip package).  Since it seemed 
like a silly limitation, I've fixed the latter package (v 1.4.4, but the

tkkit has an earlier version of course).  BWidget's code is a lot 
goofier and I would recommend tooltip instead.

Jeff

Reply via email to