mouseControl

Klaus Major klaus at major-k.de
Sun May 9 06:28:16 CDT 2004


Hi Webmaster - Dreamscape Software,
(may i call you Derek? ;-)

> I have a group with 32x32 fields.  I want to be able to click 1 of the
> fields, and move the mouse around (while the mouse button is still 
> down) and
> have the group test what field the mouse is currently over.
>
> I can get the mouseControl function to do this, but only if the mouse 
> is not
> down, and I need this to work while the mouse is down.

This is a case for drag'n'drop :-)

Group your fields and add this script to the group:

on mousedown
   set the dragdata["text"] to the number of the target
   ## or short name or...
end mousedown

on dragmove
   put the target ## into fld xyz
   ## or short name of the target or...
end dragmove

Tested and works :-)

You get the picture...

> Derek Bump
> Dreamscape Software

Regards

Klaus Major
klaus at major-k.de
www.major-k.de



More information about the use-livecode mailing list