Underneath
Jeanne A. E. DeVoto
revolution at jaedworks.com
Fri Aug 26 15:15:17 EDT 2016
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
More information about the use-livecode
mailing list