Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
mmiele
- Posts: 55
- Joined: Sun Jan 21, 2007 1:25 pm
Post
by mmiele » Tue Jul 05, 2011 12:22 pm
Hi,
anyone knows how to switch a graphic fx (dropShadow, innerGlow, etc) on and off?
If, for example, I do this:
Code: Select all
set the dropShadow of grc "mygraph" to empty
the fx is switched on instead than off!
-
Klaus
- Posts: 14189
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Tue Jul 05, 2011 12:38 pm
Hi mmiele,
...
set the dropshadow of me to 0
...
Unfortunately the docs are not helpful in this respect.
Best
Klaus
-
mmiele
- Posts: 55
- Joined: Sun Jan 21, 2007 1:25 pm
Post
by mmiele » Tue Jul 05, 2011 1:06 pm
Maany thanks,
Mario
-
maxs
- VIP Livecode Opensource Backer

- Posts: 421
- Joined: Sat Jun 24, 2006 12:02 am
-
Contact:
Post
by maxs » Wed Dec 26, 2012 8:30 pm
I used
set the dropshadow of me to 0.
It turned off the effect, but I also lost the ability to turn it back on.
Is there a way to toggle the effects on and off?
Max
-
maxs
- VIP Livecode Opensource Backer

- Posts: 421
- Joined: Sat Jun 24, 2006 12:02 am
-
Contact:
Post
by maxs » Wed Dec 26, 2012 9:15 pm
I did a search for graphic effects and dropshadow in the user guide, but did not see anything. Did I miss something? Where doe Rev keep this info, other than the dictionary?
-
Simon
- VIP Livecode Opensource Backer

- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
Post
by Simon » Wed Dec 26, 2012 10:58 pm
Hi Max,
You just mentioned two different sources of information the User Guide and the Dictionary.
In the Dictionary the dropshadow has many properties you can set like color and opacity. Setting the opacity to 0 makes the dropshadow transparent and 100 shows the dropshadow.
Still that might not help if you are measuring the size of the object.
Oh but wait... you can set the size to 0.
Simon
EDIT: the dropshadow is not calculated as part of the objects size so setting the opacity is the way to go.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
maxs
- VIP Livecode Opensource Backer

- Posts: 421
- Joined: Sat Jun 24, 2006 12:02 am
-
Contact:
Post
by maxs » Thu Dec 27, 2012 3:21 am
Thanks,
Changing the opacity of the button works great.
I assumed dropshadow had a toggle command, like "set the visible to false", since there was a checkbox next to "Dropshadow"
Thank you, Max