=head1 NAME Tk::Scrolled - Create a widget with attached scrollbar(s) =for category Derived Widgets =for index_group Perl/Tk Constructs =head1 SYNOPSIS S< >I<$whatever> = I<$parent>-EB(I ?,B<-scrollbars>=EI? ?,...?); =head1 DESCRIPTION To stop a flood of B widgets Perl/Tk introcuded the special constructor B. B creates a widget of the given Class I with attached L. =head1 OPTIONS All options beside B<-scrollbars> explained below are passed to the I widget constructor. =over 4 =item -scrollbars Expects as argument the position where the scrollbars should be created: B, B or B, B or a combination of them. If the one or both positions are prefixed with B the scrollbar will only show up if there is a 'real' need to scroll. =back =head1 ADVERTISED SUBWIDGETS See L how to use advertised widgets. =over 4 =item scrolled the scrolled widget =item I same as B above. I is the kind of widget passed to scrolled as first argument in all lowercase. =item xscrollbar the B widget used for horizontal scrolling (if it exists) =item yscrollbar the B widget used for vertical scrolling (if it exists) =item corner a frame in the corner between the vertical and horizontal scrolbar =back =head1 BUGS If a widget does not support I<-{x,y}scrollcommand> options, B does not complain if the specified widget class does not support them. E.g., S< >I<$parent>->B(B<'Button'>, ...) One does not get an error message or warning when one tries to configure scrollbars after the widget construction: S< >I<$ascrolled>->B(B<-scrollbars> => B<'e'>); =head1 SEE ALSO L =head1 KEYWORDS scrolled, scrollbar =cut