in reply to Perl Tk Scrolled Width Question

G'day buzzthebuzzsaw,

"Ideally the pane should extend to not require the scrollbars unless the user manually reduces it."

Take a look at the documentation for Tk::Pane. You'll need these options:

-scrollbars
Use this to specify the position of scrollbars and whether to display always or only when needed. There's more information on this option in Tk::Scrolled.
-sticky
Use this to stretch the widget to the maximum available size.

See also: Tk::Scrollbar, Tk::Widget and Tk::Wm.

You may need to do other things (e.g. with geometry management) but, as you've shown no code, I'm unable to say what that might be.

— Ken

Replies are listed 'Best First'.
Re^2: Perl Tk Scrolled Width Question
by buzzthebuzzsaw (Acolyte) on Nov 11, 2015 at 15:12 UTC

    Both of those options are being used, but do not address the issue I'm seeing.

    I've been looking through the documentation to get some idea of what I need to do, but can't find a way to do it.

    My thinking was to get the full width of the widgets inside the scrolled region and than change the 'sash' in the Panedwindow to accommodate the width, but I can't get that width anywhere. All I've managed to get is the visible width of the widgets, not the width including what's not visible.