Turning graphic effects off and on

Devin Asay devin_asay at byu.edu
Mon Dec 9 14:34:28 EST 2013


Hi folks,

I think I've done this, but I can't for the life of me remember how. In the property inspector for an object you can set up a graphic effect, and then use the checkbox to turn the effect off and on. LC somehow remembers your settings. But I want to do this by scripting. I know I can set each key of the effect separately, like this:

  set the colorOverlay["color"] of btn "foo" to "1,2,3"
  set the colorOverlay["opacity"] of btn "foo" to 160
  etc.

But is there a way to simulate just checking and unchecking the checkbox in the property inspector in a script?

Devin


Devin Asay
Learn to code with LiveCode University
http://university.livecode.com




More information about the Use-livecode mailing list