mouseup/mouseDoubleUp

Colin Holgate coiin at verizon.net
Tue Feb 1 14:08:47 EST 2011


I haven't been following this topic, but here's the approach I would use for telling single and double clicks in Hypercard (plus a mouseDoubleUp check to see that it didn't get through:

on mouseUp
   wait 20
   if the mouseclick then
      put "double click" && the ticks
   else
      put "single click" && the ticks
      end if
end mouseUp

on mouseDoubleUp
   put "double up"
end mouseDoubleUp


If you comment out the wait line, you'll see that the double up handler gets called.


More information about the Use-livecode mailing list