relative position of a target within a group
DunbarX at aol.com
DunbarX at aol.com
Fri Feb 19 18:26:45 EST 2010
I used a mouseDown handler so that it might not interfere with mouseUp
handlers typically already loaded in the button scripts, but you get the idea.
In the group script:
on mousedown
put the number of the target into tNum
put the number of btns of grp "yourGroup" into numBtns
repeat with y = 1 to numBtns
if the number of btn y = tNum then
put "You clicked Button" && tNum && "of" && numBtns into temp
exit repeat
end if
end repeat
answer temp
end mousedown
If this is what you needed.
Craig Newman
More information about the use-livecode
mailing list