Hi Craig,

Am 23.09.2013 um 15:39 schrieb dunb...@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

> Craig
> 
> 
> Hi friends,
> 
> see subject, how do I "switch off" of the coloroverlay["color"] 
> setting of a control?
> 
> -> set the  coloroverlay["color"] of btn XYZ to empty
> Gives an error..
> 
> Maybe set it ot 0? 
> Or will the 0 be interpreted as a "shortcut" for 0,0,0?
> 
> Any hints welcome, thanks :-)

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


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

Reply via email to