"disabling" a coloroverlay?
Klaus major-k
klaus at major-k.de
Mon Sep 23 12:42:54 EDT 2013
Hi Mark,
Am 23.09.2013 um 18:35 schrieb Mark Wieder <mwieder at ahsoftware.net>:
> Klaus-
> Monday, September 23, 2013, 7:57:07 AM, you wrote:
>
>> Hi Bernd,
>
>> Am 23.09.2013 um 16:30 schrieb BNig <niggemann at uni-wh.de>:
>
>>> Hi Klaus,
>>>
>>> on mouseUp
>>> put the colorOverlay of btn 1 into tArray
>>> put 0 into tArray["opacity"]
>>> set the colorOverlay of btn 1 to tArray
>>> end mouseUp
>
>> ???
>> If COLOR has been set before, then COLOR will be set again?
>
> You can't set the colorOverlay["color"] to empty because "empty" isn't
> a color. The default color for a new button is "0,0,0" (white). So if
> you want to keep the original color of the button, use Bernd's
> solution of setting the button's opacity (the default for a new button
> is 0). If you don't care about saving the original color then you can
> set the button's color to "0,0,0" and that will return it to its
> virgin white state.
AHA! :-D
Thank you, looks like I was completely wrong until now! 8-)
> --
> -Mark Wieder
> mwieder at ahsoftware.net
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list