At 9:40 PM +0300 8/26/2016, Richmond wrote:
on mouseUp
*--pseudocode*
if the name of the object *underneath* this image contains "P" then
do nothing
else
send image "P" somewhere else
end if
*--end pseudocode*
end mouseUp
and I'm looking for help.
I think you'll need to test whether the pointer is within each control:
repeat with x = 1 to the number of controls
if within(control x, the mouseLoc) AND ("P" is not in the short
name of control x) then
send image "P" somewhere else
exit repeat -- presumably you only want the first one
end if
end mouseUp
_______________________________________________
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