Help for this page

Select Code to Download


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