1Scrolled(3)           User Contributed Perl Documentation          Scrolled(3)
2
3
4

NAME

6       Tk::Scrolled - Create a widget with attached scrollbar(s)
7

SYNOPSIS

9        $whatever = $parent->Scrolled(Whatever ?,-scrollbars=>where? ?,...?);
10

DESCRIPTION

12       To stop a flood of ScrlWhatever widgets Perl/Tk introcuded the special
13       constructor Scrolled.  Scrolled creates a widget of the given Class
14       Whatever with attached scrollbar(s).
15

OPTIONS

17       All options beside -scrollbars explained below are passed to the What‐
18       ever widget constructor.
19
20       -scrollbars
21           Expects as argument the position where the scrollbars should be
22           created:  w, e or n, s or a combination of them.  If the one or
23           both positions are prefixed with o the scrollbar will only show up
24           if there is a 'real' need to scroll.
25

ADVERTISED SUBWIDGETS

27       See "Subwidget" in Tk::mega how to use advertised widgets.
28
29       scrolled
30           the scrolled widget
31
32       widget
33           same as scrolled above.  widget is the kind of widget passed to
34           scrolled as first argument in all lowercase.
35
36       xscrollbar
37           the Scrollbar widget used for horizontal scrolling (if it exists)
38
39       yscrollbar
40           the Scrollbar widget used for vertical scrolling (if it exists)
41
42       corner
43           a frame in the corner between the vertical and horizontal scrolbar
44

BUGS

46       If a widget does not support -{x,y}scrollcommand options, Scrolled does
47       not complain if the specified widget class does not support them.
48       E.g.,
49
50        $parent->Scrolled('Button', ...)
51
52       One does not get an error message or warning when one tries to config‐
53       ure scrollbars after the widget construction:
54
55        $ascrolled->configure(-scrollbars => 'e');
56

SEE ALSO

58       Tk::Scrollbar
59

KEYWORDS

61       scrolled, scrollbar
62
63
64
65perl v5.8.8                       2008-02-05                       Scrolled(3)
Impressum