Tk::Scrolled - Create a widget with attached scrollbar(s)
$whatever = $parent->Scrolled(Whatever ?,-scrollbars=>where? ?,...?);
User Contributed Perl Documentation Scrolled(3)
NAME
Tk::Scrolled - Create a widget with attached scrollbar(s)
SYNOPSIS
$whatever = $parent->Scrolled(Whatever ?,-scrollbars=>where? ?,...?);
DESCRIPTION
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).
OPTIONS
All options beside -scrollbars explained below are passed to the
Whatever widget constructor.
-scrollbars
Expects as argument the position where the scrollbars should be
created: w, e or n, s or a combination of them. If the one or
both positions are prefixed with o the scrollbar will only show up
if there is a 'real' need to scroll.
ADVERTISED SUBWIDGETS
See "Subwidget" in Tk::mega how to use advertised widgets.
scrolled
the scrolled widget
widget
same as scrolled above. widget is the kind of widget passed to
scrolled as first argument in all lowercase.
xscrollbar
the Scrollbar widget used for horizontal scrolling (if it exists)
yscrollbar
the Scrollbar widget used for vertical scrolling (if it exists)
corner
a frame in the corner between the vertical and horizontal scrolbar
BUGS
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');
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+----------------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+----------------------------+
|Availability | library/perl-5/perl-tk-532 |
+---------------+----------------------------+
|Stability | Volatile |
+---------------+----------------------------+
SEE ALSO
Tk::Scrollbar
KEYWORDS
scrolled, scrollbar
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from
http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-804.036.tar.gz.
Further information about this software can be found on the open source
community website at http://search.cpan.org/~srezic/Tk.
perl v5.32.0 2013-11-15 Scrolled(3)