With a few tests, it seems that the "points" of a freehand grc or polygon that are at the maximum x or y extent of the shape (top,left,right or bottom) fire when the hot spot of the cursor just touches those points. Any other connecting side has the offset issue that Ray first noticed.
That said, this does not apply to sides that may occupy those extreme values. For example, a triangle that has its base parallel to the window bottom will work correctly over that whole side (as well as the apex point at the top) those two features being the only ones that lie on the x-y extremes of such a graphic. Craig -----Original Message----- From: Ray <[email protected]> To: use-livecode <[email protected]> Sent: Mon, Jan 27, 2014 1:12 pm Subject: Re: Inaccuracies using the Within keyword Paul, Dunbar, thanks for confirming. I've reported this. It's bug 11718 if anybody's interested in following it. Thanks, Ray Horsley LinkIt! Software On 1/27/2014 11:52 AM, Paul Hibbert wrote: > Ray, > > I can confirm that your findings are correct. > > I tried setting the margins to zero, but that made no difference, I also turned off antialiasing, still no difference. > > Paul > > > On 2014-01-27, at 8:26 AM, Ray <[email protected]> wrote: > >> I've created a triangle (shape of an Egyptian pyramid) with the Freehand Polygon tool, made it opaque, filled it black and put the following script in the stack: >> >> on mouseMove >> if within(grc "Polygon",the mouseLoc ) then >> put ""&the mouseLoc&" - IN" >> else put ""&the mouseLoc&" - OUT" >> end mouseMove >> >> As I move the mouse in and out of the black area of the polygon Livecode senses that it is IN the polygon about 5 pixels before it is; that is if I'm hovering the tip of the arrow cursor around either the left or right side of my pyramid. Hover around the base and it's dead on. I wonder why? >> >> Does anybody have a minute to confirm this? >> >> Thanks! >> >> Ray Horsley >> LinkIt! >> >> _______________________________________________ >> use-livecode mailing list >> [email protected] >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
