Sticking an image to the cursor
Chipp Walters
chipp at chipp.com
Sat Oct 11 17:40:41 EDT 2008
Colin,
It's generally not a good idea to use the on idle message. Like
mouseStillDown, it doesn't do a decent job of sharing processor time
with other running applications-- and tends to max processor usage.
It's there mostly for backwards compatibility with HC. I sort of wish
they would just deprecate both of them, or bring them up to standard.
There are other good ways to do this using drag/drop.
best,
Chipp
On Sat, Oct 11, 2008 at 12:14 PM, Colin Holgate <coiin at rcn.com> wrote:
> on idle
> global dragging,dx,dy,dragwhat
> if dragging then
> set the loc of dragwhat to the mouseh - dx,the mousev - dy
> end if
> end idle
More information about the use-livecode
mailing list