Drag and Drop

J. Landman Gay jacque at hyperactivesw.com
Sun Feb 6 22:24:02 EST 2011


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




More information about the use-livecode mailing list