Help for this page

Select Code to Download


  1. or download this
    # first way with tags, all outer balls will be bound
    # to same callback
    ...
    }
    
    $zinc->bind( 'outerring', '<1>',  \&ro6);
    
  2. or download this
    my %refitems;
    my $refitem = $zinc->add('arc',$centergroup2, [ [10,20], [20,30] ],
    ...
       #pass extra info to the callback 
       $zinc->bind( $refitem{$_}, '<1>',  [  \&ro6, $_  ]    ) ;  
    }
    
  3. or download this
    my $refitem = $zinc->add('arc',$centergroup2, [ [10,20], [20,30] ],
                   -filled => 1,
    ...
       #pass extra info to the callback 
       $zinc->bind( $refitem{$_}, '<1>',  [  \&ro6, $_  ]    ) ;  
    }