Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl/Tk Scroll

by zentara (Cardinal)
on Oct 31, 2011 at 10:50 UTC ( [id://934862]=note: print w/replies, xml ) Need Help??


in reply to Perl/Tk Scroll

As Keszler said You need to set the canvas' scrollregion to the size of the image (plus anything else on the canvas).

You will probably need this trick eventually for resizing the canvas's scrollregion.

$canvas->configure(-scrollregion=> [$canvas->bbox('all')] );
After you add things to the canvas, you reset the scrollregion to the bbox ( bounding box) for 'all' items. Works great.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2025-12-16 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (96 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.