Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Attaching a balloon message to text on the canvas

by bblustein (Beadle)
on Sep 25, 2003 at 19:41 UTC ( [id://294227]=note: print w/replies, xml ) Need Help??


in reply to Re: Attaching a balloon message to text on the canvas
in thread Attaching a balloon message to text on the canvas

You beat me to it, zentara. The method of attaching the balloon to the canvas, but then calling the -msg => \%messages structure does solve the problem. However, it seems not to work on a "Scrolled" canvas. For some reason, when using the Scrolled("Canvas", etc...) syntax, the message returns a "hash ref...." type message, and returns it on the whole canvas, not merely the portion you want.

So the likely solution is for you to do a regular canvas, add scrollbars the old manual way, and use the above hash format (which is available for easy browsing in the widget demo that perl tk comes with). I hope this helps you solve your problem. Do look at the widget demo for code ideas on this, as they have a good example of exactly this type of code (minus the scrolled version).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://294227]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found