"disabling" a coloroverlay?
Klaus major-k
klaus at major-k.de
Mon Sep 23 10:16:49 EDT 2013
Hi friends,
no idea anyone?
Sorry, I am a but in a hurry with this...
Do I really need to set the complete coloroverlay to empty?
Can't think so...
Thanks in advance!
Am 23.09.2013 um 15:46 schrieb Klaus major-k <klaus at major-k.de>:
> Hi Craig,
>
> Am 23.09.2013 um 15:39 schrieb dunbarx at aol.com:
>
>> Klaus.
>>
>> Something not right, all right.
>
> You bet!
>
>> I made a new button "b3", and put this in a script somewhere:
>>
>> on mouseUp
>> get the coloroverlay["color"] of btn "b3"
>> if it = "" then
>> answer "Yep, empty, all right"
>> end if
>>
>> combine it with return --just to make sure it is an ordinary, not array, variable
>> if it = "" then
>> answer "Yep, empty, all right"
>> end if
>> set the coloroverlay["color"] of btn "b3" to ""
>> end mouseUp
>
> I made abutton, set its coloroverlay color to RED and added this scriupt:
> on mouseUp
> set the coloroverlay["color"] of me to ""
> end mouseUp
>
> -> Execution error! :-/
>
>> The variable "it" is always empty, but the property cannot be set to empty. It is possible to set it, as you know, to anything else, inlcuding "0".
>
> Setting it to 0 results in a WHITE overly?
> Sorry, still clueless :-D
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list