[squeak-dev] How to Drag the Scenery

Jim Rosenberg jr at amanue.com
Tue Dec 9 16:51:53 UTC 2008


--On December 9, 2008 2:37:48 PM +0530 "K. K. Subramaniam" 
<subbukk at gmail.com> wrote:


>> If a drag is started from inside the border, it drags the underlying
>> PasteUpMorph with it.

> This is same as "brown dragging" (as in using the move handle) the
> pasteup  within the portal. You can study the implementers and senders of
> startDrag:with:, doDrag:with: and attachMorph:. Attach the morph to the
> hand  on startDrag and detach it on mouseUp.

Thanks! attachMorph: is close, but there's a problem: it seems to do "black 
dragging" (pickup). You're exactly right that "brown dragging" is what I 
want to do -- the drag shouldn't change the underlying PasteUpMorph's 
owner. Is there a "cousin" of attachMorph: that does this? Where's the 
actual code for the Move halo?

-Thanks, Jim



More information about the Squeak-dev mailing list