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!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: TK Scrollbars not working correctly
by Popcorn Dave (Abbot) on Jan 23, 2003 at 04:52 UTC | |
by hiseldl (Priest) on Jan 24, 2003 at 06:33 UTC |
In Section
Seekers of Perl Wisdom