Hi Mike,
BWidget is maintained, but less so as pieces drift off into newer
independent modules (such as tooltip). It may be updated, but my
investigation found several issues with it that would take me a good
half day to fix up (and my days are already pretty full ;) ).
Meanwhile, it took me 15 minutes to fix tooltip. It would be possible
to update it in place (see previous posts in this list about updating
the tkkit). You can see the changes for the file at:
http://tcllib.cvs.sourceforge.net/viewvc/tcllib/tklib/modules/tooltip/tooltip.tcl?view=log
http://tcllib.cvs.sourceforge.net/viewvc/tcllib/tklib/modules/tooltip/tooltip.tcl?r1=1.15&r2=1.16
Note you have to keep the version number aligned with the pkgIndex.tcl
file if you change it.
BTW, tooltip already supports listbox items (and with the above change,
also multiple items).
Jeff
Mike Ignatoski wrote:
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