Overlapping Morphs
Karl Ramberg
karl.ramberg at chello.se
Thu Jul 12 18:10:49 UTC 2001
> Vince Mazo wrote:
>
> Hello!
> I try to know wether a "just dropped" Morph is overlapping with an
> already dropped one or not.
>
> I've already glanced through #submorphsBehinnd:do: and
> #submorphsInFrontOf:do: ,but I don't fully understand what they
> exactly do.
>
> Could someone explain this point to me?
> thanks in advance
owner submorphsDo:[:m | (m bounds intersects: self bounds) ifTrue:[m ==
self ifFalse:[m flash]]]
This will flash the overlapping morph.
Karl
More information about the Squeak-dev
mailing list
|