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