tmGauge Digit problem

James Hurley jhurley0305 at sbcglobal.net
Thu Oct 30 15:27:27 EDT 2008


>
> Message: 14
> Date: Wed, 29 Oct 2008 16:08:34 -0700
> From: Scott Rossi <scott at tactilemedia.com>
> Subject: Re: tmGauge Digit problem
> To: Revolution Mail List <use-revolution at lists.runrev.com>
> Message-ID: <C52E3B02.3D3A7%scott at tactilemedia.com>
> Content-Type: text/plain;	charset="US-ASCII"
>
> Recently, Ken Ray wrote:
>
>>> Yes -- apparently polygon point lists seem to behave slightly  
>>> differently
>>> (or oddly) in Rev 3.
>>
>> Scott, if you don't mind explaining the differences, I think it  
>> would be
>> beneficial to everyone working with polygons (like me!).
>
> I haven't totally tested this out, but *apparently* when setting  
> the points
> of a polygon via script in Rev 3, if you do not place a closing  
> point loc at
> the end of the point list that is identical to the starting point  
> loc, Rev
> will assign some random wacky point loc of its own choosing and  
> potentially
> cause a polygon object to render wildly out of control.  This is  
> what I ran
> into with tm|gauge: polygon digits being rendered offscreen because  
> Rev was
> adding crazy point locations to my point sets.
>
> Again, I haven't spent the time to fully track this down, just did  
> enough
> exploration to put a fix in place that forced the ending point loc  
> to match
> the starting point loc.  HTH.
>
> Regards,
>
> Scott Rossi

Scott,

I can remember (vaguely) of having problems with open-ended polygons  
in Run Rev v. 2, In the old Turtle Graphic days.

  As I recall, Run Rev had a pension for closing the polygon--as you  
can image any geometrician would want.

I found I had less problems, particularly with RR closing the polygon  
for me, when I changed the style (why  does the tool tip read "type"  
in the inspector?) to "line."  Of course you can close the "line"  
graphic by

set the points of grc "myLineGrahic" to the points of grc  
"myLineGraphics" &   cr & line 1 of the points of grc "myLineGraphics""

The "line" style allows multiple points and doesn't seem to fuss with  
closure.

Jim Hurley






More information about the use-livecode mailing list