Selecting Multiple Buttons in iOS

J. Landman Gay jacque at hyperactivesw.com
Fri Dec 2 14:38:35 EST 2011


On 12/2/11 12:35 PM, Randy Hengst wrote:

> I have a variable set as a marker… it's made "true" in the
> mouseDown.
>
> However, a mouseEnter does not seem to be sent while a dragging with
> the mouse (or your finger in iOS) down… neither does the mouseLoc()
> get updated…

Interesting. You're right. This seems to work instead:

local sFlag

on mouseDown
   put true into sFlag
end mouseDown

on mouseMove x,y
   if not sFlag then pass mousemove
   repeat with i = 1 to 10
     if x,y is within the rect of btn i then
       put the short name of btn i
     end if
   end repeat
end mouseMove

on mouseUp
   put false into sFlag
end mouseUp

on mouseRelease
   put false into sFlag
end mouseRelease

I put it into a card script. LiveCode is pretty fast, I don't see any 
lag while polling.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com





More information about the use-livecode mailing list