Anyone break Regular Polygons?

Ben Rubinstein benr_mc at cogapp.com
Mon Feb 20 13:49:54 EST 2012


I'm not convinced that you broke it, Ken.  If you did, I want to know how you 
got into my office...  I ran into approximately this problem the other day.

I think that there are two things going on here.

The less important is that at some point the default number of sides for the 
polygon object was set to 12, which is a silly default not least because it's 
not even one of the choices on the number-of-sides dropdown (located two rows 
below on the toolbox, apologies if you knew that).  My guess is that someone 
at RunRev happened to have it set that way and accidentally saved changes, and 
it's been shipping that way ever since.  (On a quick check, it's been that way 
for a while; but in 4.0, it was 8 sides.)

The more significant is a bug (I think it's a bug) in which a newly dragged 
object is displayed as if it were selected; and in some ways it is; but it's 
not exactly.  I find it hard to be more precise than that.  Normally there are 
two modes that you can be in, in the IDE: browse and select.  But when 
dragging a polygon out, the Tools Palette changes to reflect being in neither 
mode; and I think that's indicative that the IDE is in some intermediate state.

It's a bit messy. For example I find that if you create a regular polygon 
using the 'New Control' menu item, then the Tools Palette doesn't change mode: 
if it was in browse mode, it stays in browse mode; if it was in pointer mode, 
it stays in pointer mode.  In either case the polygon is displayed as 
selected, but if you were in browse mode, the handles are not draggable. If 
there is an open unlocked inspector, then in either case it will switch to 
inspect the new graphic.  So it's partially selected!  (For extra variation: 
when created using the 'New Control' menu item, the new regular polygon has 
four sides, regardless of the setting on the Tools Palette.)

I haven't just now reproduced the issue where the inspector is unexpectedly 
inspecting the stack - but I had exactly that issue the other day.

My guess is that this is all related to the mysterious EditMode property, 
introduced to allow end users to manipulate graphics outside the IDE.  But 
that's just a guess.

Here be bugs.  A good person would open an report in the RQCC.  Sadly I'm 
feeling a bit St Augustine tonight.  You?

Ben

On 20/02/2012 17:45, Ken Corey wrote:
> Hi All,
>
> I thought to myself "I could use a Regular Polygon here..." So I clicked on
> the diamond shape in the toolbox, and started to draw one on my card. It
> defaulted to 12 sides, about 8 more than I wanted.
>
> Once I let go of the mouse button, the Regular Polygon was deselected, and the
> open Property Inspector started inspecting the stack instead of the Regular
> Polygon.
>
> If I click on the polygon, the handles appear, the inspector changes to
> reflect the polygon, and then the handles go away and the inspector points at
> the stack again.
>
> Thisi happens on my Mac OSX 10.6.8 Livecode 5.2, and now OSX 10.7.2 Livecode 5.5.
>
> Okay, so I go to try it on Windows...(Win 7 64 bit, 5.5.0 dp1)
> I can draw the poly, and it stays selected, but when I right click on it and
> select "inspector", nothing happens. If I already have the inspector open and
> then click on the grc, I can see and change things in the inspector.
>
> Just as a side note, I hover over 'Sides' to see what the property name is,
> and no joy. All other properties have a tooltip, but not sides. *grr* (Yes, I
> did look in the dictionary and can see it's "polySides", but something seems
> broken in the interface.)
>
> Has anyone seen this behaviour before? I'm sure I broke things as this strange
> behaviour existed before the 5.5.0_dp1 drop, but I have no idea how.
>
> -Ken




More information about the use-livecode mailing list