Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Don't know the right wording as I'm not a programmer... put this makes abit of sence to me: If I could make an array... made up of each of the 11/12 balls created in the for loop's names, then the "#$zinc->bind($varname1, '<1>', \&ro6b);" bit as it were, might work. # Am on Windows XP Home # With ActiveState ActivePerl 5.8.7 Build 815 # Also use EnginSite Perl Editor LITE# # bit of code # # outer marker ball one my $refitem = $zinc->add('arc',$centergroup2, [ [10,20], [20,30] ], -filled => 1, -fillcolor => $refgrad, ## $refgrad -linewidth => 0, -priority => 100 ); # make/clone 11/12 more of the above... and form the ring shape for (1..11){ my $relement = $zinc->clone($refitem); $zinc->rotate($relement,.53*$_); } $zinc->bind($refitem, '<1>', \&ro6); # this is the one that w +orks when I click on it #$zinc->bind($relement[1], '<1>', \&ro6b); # Looking for this part
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: for loops
by samtregar (Abbot) on Apr 10, 2006 at 17:01 UTC | |
by Anonymous Monk on Apr 10, 2006 at 17:32 UTC | |
Re: for loops
by zentara (Cardinal) on Apr 10, 2006 at 19:38 UTC | |
by Anonymous Monk on Apr 11, 2006 at 16:57 UTC |