Remember the NSProgressIndicator OS X?

Wouter wouter.abraham at pi.be
Sat Jul 17 09:24:41 EDT 2004


Weird difference between mc and rev!
For the rev users add the extra line in the following handler:

> on prepArray  tG,tK
>   if there is no grp "runningStarX" then goCreateSome
>   put item 1 of Cp into tX
>   put item 2 of Cp into tY
>   put (2 * pi / 12) into sRad
>   repeat with i = 1 to 12
>     put trunc(tG * cos (sRad * i)) + tX into a
>     put trunc(tG * sin (sRad * i)) + tY into b
>     put trunc(tK * cos (sRad * i)) + tX into c
>     put trunc(tK * sin (sRad * i)) + tY into d
>     put quote & a,b & quote && "& cr &" & quote& c,d & quote into 
> aTemp[i]
>   end repeat
>   repeat with j = 1 to 12
>     repeat with i = 1 to 6
>       put cStar & i into tStar
>       put j - i  + 1 into x
>       if x <= 0 then add 12 to x
>       put "set the points of" && the name of tStar && "to" && aTemp[x] 
> after  aPoints[j]
>     end repeat
>     if j <> 1 then put  "& cr & cr &" & aTemp[j]   after aTemp[0]
>     else put aTemp[j]   after aTemp[0]
>   end repeat

put  "& cr & cr" after aTemp[0]

>   put cStar& "7" into tStar
>   put "set the points of" && the name of tStar && "to" && aTemp[0]  & 
> cr  into aPoints[0]
> end prepArray


The difference between mc and rev if the extra line is not added:
     -  in rev there is an extra line at 3 o'clock in the runningStarX7 
graphic
where there is none in mc, though both use the same engine!!
(enlarge the runningStarX7 graphic to see this difference)

How come????

Greetings,
WA



More information about the use-livecode mailing list