"disabling" a coloroverlay?

Mark Wieder mwieder at ahsoftware.net
Mon Sep 23 12:35:51 EDT 2013


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.

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list