jamesr | 20 Aug 22:59

Fwd: Dragging an Object out of a View?


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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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



Gmane