"disabling" a coloroverlay?
dunbarx at aol.com
dunbarx at aol.com
Mon Sep 23 09:39:46 EDT 2013
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 <klaus at major-k.de>
To: How to use LiveCode <use-livecode at lists.runrev.com>
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
klaus at major-k.de
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list