Hi Art,

Maybe the "cantSelect' property would help.

    set the cantSelect of btn 1 to true

Then the control can't be selected except by some indirect means like in the Application Browser in the IDE.

Phil Davis



On 9/28/11 10:38 AM, Art DiVito wrote:
I need to prevent users from deleting a control by selecting it with the 
pointer tool and hitting the delete key.
According to the LiveCode dictionary (under "deletefield"), an "undo" will work 
for fields. However, this appears to be true for buttons, but NOT for fields. Thus,
On deletebutton
Answer "Can't do that!"
send "undo" to this card in 5 milliseconds
end deletebutton
works fine. However,
On deletefield

Answer "Can't do that!"

send "undo" to this card in 5 milliseconds

end deletefield
does NOT work.
I don't know whether it will work for images (I need to prevent them from being 
deleted too).
What can I do?
Thanks.

_______________________________________________
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


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net


_______________________________________________
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