Hello,

LC 6.1, Win7, I have the following handler to let the user drag a line:

   lock messages

   repeat while the mouse is down

      wait with messages

      drag from tOldLoc to the mouseLoc

      put the mouseLoc into tOldLoc

   end repeat

   unlock messages

dragging the mouse the line gets drawn fine, if I move the mouse slowly.
When moving the mouse faster, the line gets dashed/dotted. So obviously the
repeat loop can't take off the mouse movement. I tried with/without lock
messages and with/without waiting, but the result is always almost the same.
Obviosly the repeat loop also depends on the processor cylcle, but my
computer isn't that old and I think pretty representative for the average of
my clients.

Any idea, how to speed up the drawing process, so that the line doesn't get
dashed?

Thanks for any ideas

Tiemo

 

 

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to