Page 1 of 1

Cannot click on the whole shape of a polygon

Posted: Mon Jul 26, 2021 12:24 pm
by gilgml
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.

Re: Cannot click on the whole shape of a polygon

Posted: Mon Jul 26, 2021 12:29 pm
by Klaus
Hi gilgml,

this is correct beahvior UNLESS you have checked OPAQUE for that graphic. :D


Best

Klaus

Re: Cannot click on the whole shape of a polygon

Posted: Wed Jul 28, 2021 3:02 pm
by gilgml
Hi Klaus, thank you for the helping hand :D
It doesn't work, even with Opaque checked :(

Re: Cannot click on the whole shape of a polygon

Posted: Wed Jul 28, 2021 3:36 pm
by Klaus
Bonjour gilgml,

that is very strange, it works here with an OPAQUE polygon!? :shock:
macOS 10.14.6, LC 9.6.2.

Best

Klaus
polygon_click.jpg

Re: Cannot click on the whole shape of a polygon

Posted: Wed Jul 28, 2021 5:44 pm
by dunbarx
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

Re: Cannot click on the whole shape of a polygon

Posted: Wed Jul 28, 2021 6:50 pm
by gilgml
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 :)

Re: Cannot click on the whole shape of a polygon

Posted: Wed Jul 28, 2021 10:26 pm
by dunbarx
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