in reply to TK Scrollbars not working correctly
If you want the canvas to be the size of the image AND the scrollbars to fit in that canvas, then you will have to
- create another frame the size of your image, and
- create the canvas and place it in the frame
my $main_frame = tkinit(); # make this frame the size of your image my $canvas_frame = $main_frame->Frame( ...options... ); my $tcanvas = $canvas_frame->Scrolled('Canvas', ...options...); my $canvas = $tcanvas->Subwidget('canvas');
Try making the frame smaller than the image to see that the scrollbars appear as you want them. Also, you need to combine the '-scrollbar' options as mentioned before.
--
hiseldl
What time is it? It's Camel Time!
In Section
Seekers of Perl Wisdom