Klaus-

Monday, September 23, 2013, 7:57:07 AM, you wrote:

> Hi Bernd,

> Am 23.09.2013 um 16:30 schrieb BNig <[email protected]>:

>> 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
 [email protected]


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to