Klaus.
Something not right, all right.
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
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".
Craig
-----Original Message-----
From: Klaus major-k <[email protected]>
To: How to use LiveCode <[email protected]>
Sent: Mon, Sep 23, 2013 8:38 am
Subject: "disabling" a coloroverlay?
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
[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
_______________________________________________
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