in reply to Tk: How do you control the height of a Scroll?

Hi!

If I understand you right, -height could be what you want:

$t = $mw->Scrolled("Text", -width => 35, -height=>7, -wrap => 'none', )->pack(-expand => 1, -fill => 'both');

Replies are listed 'Best First'.
Re: Re: Tk: How do you control the height of a Scroll?
by Anonymous Monk on Mar 02, 2004 at 06:28 UTC
    nice , thanks
      Note that you wanted to control the size of the scrollable region, not the size of the bar, so that is why you mess with Tk::Scrolled.

      Tk::Scrolled is an uber-container, not the the little thing you click on with your mouse to move the bar back and forth. If you adjust the width on that, it makes the bar narrower but does not affect the size of the region.