[squeak-dev] Event handling challenges

K K Subbu kksubbu.ml at gmail.com
Mon Jun 15 15:16:04 UTC 2020


On 15/06/20 6:55 pm, Trygve Reenskaug wrote:

>     joe := PasteUpMorph new color: Color lightBlue.
>     joe bounds: (500 at 400 corner: 800 at 600).
>     joe dropEnabled: true.
...
> I move some background window,  actually a collapsed Monticello thing, 
> to Joe's position, Joe grabs it and makes it into a submorph. Any hints 
> about how to proceed will be greatly appreciated.

PasteUpMorph is designed to grab morphs. It overrides mouseDown: method 
in Morph to try and grab whatever morph is dropped into it (unless it is 
in PartsBin).

You could use RectangleMorph or BorderedMorph to avoid grabbing.

HTH .. Subbu


More information about the Squeak-dev mailing list