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       ?,...?);
11

DESCRIPTION

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

OPTIONS

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

ADVERTISED SUBWIDGETS

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

BUGS

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

SEE ALSO

59       Tk::Scrollbar
60

KEYWORDS

62       scrolled, scrollbar
63
64
65
66perl v5.32.0                      2020-07-28                       Scrolled(3)
Impressum