Please accept this HList.pm patch to allow balloons to be attached to HList
entries (as requested a few weeks back on c.l.p.t. )
http://groups.google.ca/groups?selm=304c0f8888a90dc7b0ad957902f1342a%40local
host.talkaboutprogramming.com
The sub is very similar to the BalloonInfo sub for Tk::Canvas (ala Mr.
Rezic). A hash is used for an HList as well - but instead of canvas "items"
as the keys - the "entrypaths" are used for the HList.
While doing this - I think I found a bug with the info('bbox') method. It
doesn't seem to take into account any headers which may be showing. I worked
around this in the code by checking for a header in the zeroeth column and
using it's height to adjust the y pixels.
There are two attachments - one is the patch. The other is a test script
blatently hacked from the widget demo to show the balloons. If this is
accepted - then an HList should be added to the Balloon demonstration.
Jack
Hlist.diff
Description: Binary data
testbal.pl
Description: Binary data
|