use subs qw/cscroll_button cscroll_enter cscroll_leave/;
use vars qw/$TOP/;
sub cscroll {
# Create a top-level window containing a simple canvas that can be
# scrolled in two dimensions.
my($demo) = @_;
$TOP = $MW->WidgetDemo(
-name => $demo,
-text => 'This window displays a canvas widget that can be scrolled either using the scrollbars or by dragging with button 2 in the canvas. If you click button 1 on one of the rectangles, its indices will be printed on stdout.',
-title => 'Scrollable Canvas Demonstration',
-iconname => 'cscroll',
);
my $c = $TOP->Scrolled(qw/Canvas -relief sunken -borderwidth 2
-scrollbars se -scrollregion/ => ['-10c', '-10c', '50c', '20c']);