[squeak-dev] How to Drag the Scenery

K. K. Subramaniam subbukk at gmail.com
Wed Dec 10 17:35:12 UTC 2008


On Tuesday 09 Dec 2008 10:21:53 pm Jim Rosenberg wrote:
> owner. Is there a "cousin" of attachMorph: that does this? Where's the
> actual code for the Move halo?
move or brown dragging is essentially a x,y translation op. The offset 
computed as the difference between the current hand position and the position 
at start of drag. It ends on mouseUp. The actual move is done in 
setConstrainedPosition:hangOut:

see startDrag: evt with: dragHandle
	"Drag my target without removing it from its owner."
and doDrag: evt with: dragHandle

HTH .. Subbu



More information about the Squeak-dev mailing list