Page 1 of 1
Cannot undo a graphic opaque setting
Posted: Wed May 11, 2022 7:26 pm
by dunbarx
I made a polygon graphic of a few sides. I set its "opaque" property, and the "open" side was drawn, closing the shape.
This is not at all what I wanted, which was simply to be able to grab that control from its interior with the pointer tool, but still as an open shape. Clearing the state of the "opaque" button does not revert the graphic back to its original form.
I know that LC is not a CAD program.
Craig
Re: Cannot undo a graphic opaque setting
Posted: Wed May 11, 2022 8:28 pm
by FourthWorld
AFAIK that's how polys have always been handled in the engine since the very beginning back in the '90s.
The best I can come up with as a workaround would be a second object: the interior set as you have it, opacity with closed border but linesize set to 0, with a copy set the other way, with no opacity and linesize set to whatever you need to display.
Re: Cannot undo a graphic opaque setting
Posted: Thu May 12, 2022 1:45 am
by dunbarx
Richard.
Thanks, Kludgeing is my forte.
I just was wondering why, since it does not seem to be an OS thing. Or am I wrong? But if not wrong, then why? Some inaccessible property of that graphic is changed permanently deep down.
Craig
Re: Cannot undo a graphic opaque setting
Posted: Thu May 12, 2022 6:28 am
by FourthWorld
Not an OS thing, but a design decision that goes back as far as I can recall. It's in the engine's graphics routines, independent of the OS.
I'd wager it could be changed. And I'd wager it would be so far behind other priorities it wouldn't be changed in any practical time frame.
If you need that appearance you could either do a workaround like the one I outlined above, or write a new polygon shape object as a widget with LC Builder.
Can't think of another solution.
Re: Cannot undo a graphic opaque setting
Posted: Thu May 12, 2022 6:48 am
by richmond62
You could import a hollow SVG into the svg widget.
Re: Cannot undo a graphic opaque setting
Posted: Mon May 16, 2022 12:14 pm
by richmond62
simply to be able to grab that control from its interior with the pointer tool, but still as an open shape
Didn't have any problem with the left-hand graphic
[MacOS 10.7.5 / LC 8.1.10]:
-
Re: Cannot undo a graphic opaque setting
Posted: Mon May 16, 2022 1:05 pm
by LCMark
The polygon does not have to have a closed border to be opaque - its just that the engine (whether helpfully or not - depending on your point of view) will implicitly 'close' the points of a 'polygon' when you set the opaque to true (or edit the points property):
You can avoid this though - create your polygon with the polygon tool
Change the style to curve
Turn opaque on - no line is added
Switch the style back to polygon
Basically if style of the graphic is polygon and you 'set the opaque to true', then it adds a closing line; if the style of a graphic is a curve and you 'set the opaque to true' then it does not.
Re: Cannot undo a graphic opaque setting
Posted: Mon May 16, 2022 3:01 pm
by dunbarx
LCMark:
Aha. A curve graphic comprised of a handful of straight sides. Genius.
Craig