Tk::Scrolled - Create a widget with attached scrollbar |
Tk::Scrolled - Create a widget with attached scrollbar(s)
$whatever = $parent->Scrolled(Whatever ?,-scrollbars=>where? ?,...?);
To stop a flood of ScrlWhatever widgets Perl/Tk introcuded the special constructor Scrolled. Scrolled creates a widget of the given Class Whatever with attached scrollbar(s).
All options beside -scrollbars explained below are passed to the Whatever widget constructor.
See Subwidget in the Tk::mega manpage how to use advertised widgets.
If a widget does not support -{x,y}scrollcommand options, Scrolled does not complain if the specified widget class does not support them. E.g.,
$parent->Scrolled('Button', ...)
One does not get an error message or warning when one tries to configure scrollbars after the widget construction:
$ascrolled->configure(-scrollbars => 'e');
scrolled, scrollbar
Tk::Scrolled - Create a widget with attached scrollbar |