Page 1 of 1
Turn "outer glow" On and Off? - Solved
Posted: Tue Jun 04, 2019 12:08 pm
by DR White
// LiveCode 9.0.5-rc-1
set the outerglow of grc "Oval_3_1" to true
set the outerglow of grc "Oval_3_1" to false
Why does the above code NOT control the "outerGlow" of grc?
Thanks,
David
Re: Turn "outer glow" On and Off?
Posted: Tue Jun 04, 2019 12:27 pm
by richmond62
Because 'outerglow' is far more complicated than that:
-
-
Button 'ON':
Code: Select all
on mouseUp
set the outerglow["color"] of grc "Oval_3_1" to "0,0,0"
set the outerglow["opacity"] of grc "Oval_3_1" to "255"
set the outerglow["blendMode"] of grc "Oval_3_1" to "normal"
set the outerglow["filter"] of grc "Oval_3_1" to "gaussian"
set the outerglow["size"] of grc "Oval_3_1" to "50"
set the outerglow["spread"] of grc "Oval_3_1" to "50"
end mouseUp
Button 'OFF':
Code: Select all
on mouseUp
set the outerglow of grc "Oval_3_1" to false
end mouseUp
Re: Turn "outer glow" On and Off?
Posted: Tue Jun 04, 2019 12:52 pm
by DR White
richmond62,
I try not to ask for help until after I have done some research myself first.
When I searched "outerglow" I found some older comments such as you have described, but I thought that maybe, the later versions of LC had simplify the process.
Thanks for your explanation,
David
Re: Turn "outer glow" On and Off? - Solved
Posted: Tue Jun 04, 2019 1:05 pm
by [-hh]
Remark.
Because the outerglow property is an array the following is equivalent to switch it OFF:
set the outerglow of grc "Oval_3_1" to false
set the outerglow of grc "Oval_3_1" to true
set the outerglow of grc "Oval_3_1" to empty
In the first two cases the engine inserts empty because false and true are invalid values for the (array) property outerglow.
Re: Turn "outer glow" On and Off? - Solved
Posted: Tue Jun 04, 2019 1:12 pm
by richmond62
the later versions of LC had simplify the process
That sounds all very jolly, but 'outerglow', being complicated insofar as it has 5 parameters
is probably not capable of being simplified.
Re: Turn "outer glow" On and Off? - Solved
Posted: Tue Jun 04, 2019 1:26 pm
by [-hh]
Certainly "simplifying" makes sense in that "turning on" as from the property inspector could set default values (or the latest used values) for the array elements.
But that does nothing else than setting array elements as Richmond did in his "ON"-script above.
That is, we have to do that by ourselves when scripting/ not doing from the property inspector.
Re: Turn "outer glow" On and Off? - Solved
Posted: Tue Jun 04, 2019 1:42 pm
by DR White
Don't get me wrong.
I think that LC is the best software on the planet for quickly and easily creating simple to complex apps on ANY platform!! Thats coming from an old "Visual Basic" enthusiast (young people probably never heard of it - LOL).
I just wanted to be sure that I was not over looking the simplest way of doing something.