Creating Drag and Drop

Eric Chatonet eric.chatonet at sosmartsoftware.com
Thu Jun 2 14:07:52 EDT 2005


Hi Emilio,

Sorry that this stack could not help you.
In your case, I think that you could use another method I used in  
many projects:
While the mouse is down, you use the mouseMove message in the dragged  
object (or send a message in <some> milliseconds) to track where is  
the mouseLoc (see the mouseStack function and within operator) and  
act accordingly.
If I understand correctly (I am not sure :-), it might be more simple  
if it is always within the same stack window: when the mouse is up,  
you check the mouseLoc, the position of the object, etc.

Le 2 juin 05 à 19:19, Emilio Gagliardi a écrit :

> Dear Eric
> I now realize this code is not what i need because it implements  
> drap and drop with objects outside of the Revolution Window.  It  
> does not appear that dragEnter and dragDrop fire for objects within  
> the revolution window.  That is, I want to drag objects that are  
> within the window.  Perhaps I am not using your code correctly, but  
> I do not see how to make a field or button cause the dragEnter  
> command to fire.  I would like the user to drag a field or button  
> around, place it over an image or field and then store the name or  
> ID of the field/button they just dragged for later use.  What i'm  
> stuck on is determining whether the source field/button is over the  
> target field/image AND which commands fire and in what order.

Best regards from Paris,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Plugins, tutorials and more on our website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        eric.chatonet at sosmartsoftware.com/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------



More information about the use-livecode mailing list