Drag and Drop

Peter Haworth pete at mollysrevenge.com
Sun Feb 6 22:32:45 EST 2011

I did find the code to this for various controls in the rev libraries.  I guess I might be able to just copy it and make it work for me somehow.

Pete Haworth

On Feb 6, 2011, at 7:24 PM, J. Landman Gay wrote:

> On 2/6/11 7:21 PM, dunbarx at aol.com wrote:
>> If you know what controls are where, and you must because you made
>> them, named them and placed them on your palette, then can't you just
>> get target info, clone the control, and make it track the mouse until
>> dropped?
> You can't drag controls from one stack to another, you can only drag them around a card. So the trick is to drag a small temporary stack, which appears under the mouse, to the target stack, then create the control in the target stack and delete the temp stack.
> The temp stack used for dragging in LiveCode probably has its windowshape set to an image of the selected control, which gives the illusion of dragging the control itself.
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

More information about the Use-livecode mailing list