mouseDown across multiple buttons
Malte Brill
malte.brill at t-online.de
Mon Nov 24 07:30:25 EST 2003
Hi Scott,
maybe this helps:
Group the buttons. In the groups script:
global myHilite
on mouseDown
set the radiobehavior of me to false
put not the hilite of the target into myHilite
--should I hilite or unhilite?
end mouseDown
on mousemove x,y
if the mouse is down then
--check every button in the group
repeat with i=1 to the number of buttons of me
if x>the left of btn i of me and x<the right of btn i of me then
set the hilite of btn i of me to (myhilite)
end if
end repeat
end if
end mousemove
hope this helps,
Malte
More information about the use-livecode
mailing list