- or download this
my @box; # Tracks the IDs of each rectangle
my $viewable_width=400; # How wide is the viewable Canvas?
- or download this
$sc[$i] = $tile[$i]->Scrolled('Canvas',
-scrollbars => 'os',
...
-height => 125,
-background => randColor()
)->pack(qw/-fill both -side top -expand 1/);
- or download this
$box[$i] = $sc[$i]->createRectangle($x, 50, $x+20, 90,
-fill => randColor(),
...
-width => 2,
-tags => 'rect',
);
- or download this
sub AlignAll{
my ($x1, $y1, $x2, $y2);
...
$sc->xviewMoveto($newx); # Move Canvas obje
+ct
}
}
- or download this
$frame->Button(
-text => " Zoom Out ",
...
}
}
)->pack(qw/-side left -padx 25/);