Cannot click on the whole shape of a polygon
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Cannot click on the whole shape of a polygon
Hello to everybody !
Little problem, only the "corners", say the 'spikes' of a polygon triggers on mouse down.
I don't know if it is the standard behavior, or if there is a workaround...
Thanks in advance.
Little problem, only the "corners", say the 'spikes' of a polygon triggers on mouse down.
I don't know if it is the standard behavior, or if there is a workaround...
Thanks in advance.
Re: Cannot click on the whole shape of a polygon
Hi gilgml,
this is correct beahvior UNLESS you have checked OPAQUE for that graphic.
Best
Klaus
this is correct beahvior UNLESS you have checked OPAQUE for that graphic.
Best
Klaus
Re: Cannot click on the whole shape of a polygon
Hi Klaus, thank you for the helping hand
It doesn't work, even with Opaque checked
It doesn't work, even with Opaque checked
Re: Cannot click on the whole shape of a polygon
Bonjour gilgml,
that is very strange, it works here with an OPAQUE polygon!?
macOS 10.14.6, LC 9.6.2.
Best
Klaus
that is very strange, it works here with an OPAQUE polygon!?
macOS 10.14.6, LC 9.6.2.
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Cannot click on the whole shape of a polygon
Hi.
I see what Klaus sees, setting the "opaque" property allows a message to be sent when clicking on the interior of the shape. This has been true forever.
Know that a regular polygon has this property set by default, whereas the one you draw using the polygon graphic tool has the property cleared by default.
Mac OS.
Craig
I see what Klaus sees, setting the "opaque" property allows a message to be sent when clicking on the interior of the shape. This has been true forever.
Know that a regular polygon has this property set by default, whereas the one you draw using the polygon graphic tool has the property cleared by default.
Mac OS.
Craig
Re: Cannot click on the whole shape of a polygon
OK then.
Drew some others ( with polygon graphic tool ) ... it works.
The one not OK was badly 'drawned' ( the polygon circumference was not closed ( even one pix not closed ) )
Thank you for your support
Drew some others ( with polygon graphic tool ) ... it works.
The one not OK was badly 'drawned' ( the polygon circumference was not closed ( even one pix not closed ) )
Thank you for your support
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Cannot click on the whole shape of a polygon
Hi.
When you set the opaque of a hand-drawn polygon, LC closes the shape. It adds one more line to "the points" property to do that, which is why clearing the opaque property does not restore the original open version. You would have to save those original points and restore manually.
I don't think you can have it both ways, that is, with a unclosed shape and opaque set. You can kludge this for visual effect in many ways, though. And I seem to remember a more direct method to have an open shape with its opaque set, but am not sure about that.
Craig
When you set the opaque of a hand-drawn polygon, LC closes the shape. It adds one more line to "the points" property to do that, which is why clearing the opaque property does not restore the original open version. You would have to save those original points and restore manually.
I don't think you can have it both ways, that is, with a unclosed shape and opaque set. You can kludge this for visual effect in many ways, though. And I seem to remember a more direct method to have an open shape with its opaque set, but am not sure about that.
Craig