Problem dragging morph with form

Ned Konz ned at bike-nomad.com
Thu Jul 3 15:47:44 UTC 2003


On Thursday 03 July 2003 01:17 am, tblanchard at mac.com wrote:
> I've got a morph that owns a form that I got from opening an image
> file.  (Its meant to be a thumbnail).  Its part of an assembly with
> a stringmorph for a label.
>
> It draws just fine on its own.  I can grab its parent morph and
> drag it around.  However, when I try to grab the thumbnail morph
> itself, the cursor vanishes and the system locks up.  The drawing
> code is:
>
> drawOn: aCanvas
>
> scaledForm := form scaledToSize: (self extent).
> aCanvas drawImage: scaledForm at: (self topLeft).
>
> (For bricks folks - this code is actually in a BackgroundPainter).
>
> Any hints on how to debug this are most welcome.

If you get rid of your drawOn: does this problem stop?

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list