Cannot undo a graphic opaque setting
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9580
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Cannot undo a graphic opaque setting
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
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
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Cannot undo a graphic opaque setting
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.
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 9580
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Cannot undo a graphic opaque setting
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
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
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Cannot undo a graphic opaque setting
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.
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Cannot undo a graphic opaque setting
You could import a hollow SVG into the svg widget.
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Cannot undo a graphic opaque setting
Didn't have any problem with the left-hand graphicsimply to be able to grab that control from its interior with the pointer tool, but still as an open shape
[MacOS 10.7.5 / LC 8.1.10]:
-
- Attachments
-
- shapely.livecode.zip
- Stack.
- (782 Bytes) Downloaded 79 times
Re: Cannot undo a graphic opaque setting
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.
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.
-
- VIP Livecode Opensource Backer
- Posts: 9580
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Cannot undo a graphic opaque setting
LCMark:
Aha. A curve graphic comprised of a handful of straight sides. Genius.
Craig
Aha. A curve graphic comprised of a handful of straight sides. Genius.
Craig