To create a
widget and Scrollbars at the same time, use the
returns a pointer to the widget created. It is the easiest way to add
Scrollbars to a scrollable widget. The
method creates a Frame that contains the widget and Scrollbar(s). You
create them all in one command.
The usage for the
$widget = $parent->Scrolled('Widget', -scrollbars => 'string'
[, options ]);
The first argument is the widget to create, such as
other argument you’ll need to use is the
-scrollbars option, which takes a string that
tells it which Scrollbars to create and where to put them.
The possible values for
"ow"; or some combination of those that combines
s with an
"n" means to put a horizontal Scrollbar above the
"s" means to put a horizontal Scrollbar
below the widget. The
"e" means to put a vertical
Scrollbar to the right of the widget. The
means to put a vertical Scrollbar to the left of the widget.
You can have a maximum of two Scrollbars for each widget. For
instance, we can create one Scrollbar on the
side of the widget. It is possible to use
create two Scrollbars, one on the top and one on the left of the
widget. It is not legal to use
"s" scroll in the same
"o" in front of the direction makes that Scrollbar optional. Optional Scrollbars will only display when the ...