[Laszlo-user] Fwd: Dragging an Object out of a View?

jamesr circlecycle at gmail.com
Wed Aug 20 13:59:00 PDT 2008


well if you aren't using clipping then *visually* it's quite easy to make an
object be dragged out of a parent view. This may be obvious.
If your question is how to *reparent* a view from one container to another -
the short answer is, you can't. The best pattern to use here is to save all
the related parameters that compose the view being dragged and create a new
view under the desired new parent and copy those parameters over.

If you use that pattern, a simple copy/paste manager for that type of
dragged object that will automatically do that given the object and the new
parent is a good way to go.

Did this help?

On Fri, Aug 15, 2008 at 3:32 PM, Kenneth Miller <xkenneth at gmail.com> wrote:

> Is it possible to drag an object OUT of a view?
>
> Pseudo-Code:
> <canvas>
>        <simplelayout axis="y"/>
>        <view>
>               <draggable object>
>        </view>
>        <view/>
> </canvas>
>
> I want to be able to drag the draggable object OVER the other view.
>
> Regards,
> Ken
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080820/f1e34e3f/attachment.html


More information about the Laszlo-user mailing list