Bounds question

Bob Arning arning at charm.net
Wed Aug 18 17:48:56 UTC 1999


On Wed, 18 Aug 1999 08:33:43 PDT "Carl Gundel" <morphic at hotmail.com> wrote:
>Why do some morphs have bounds that are relative to the world (MenuItems in 
>a Menu), and some have bounds that are relative to their owner (StringMorphs 
>in a PluggableList)?  Does the Transform in a PluggableList have something 
>to do with it?

That's correct. The Transform stuff is used by a ScrollPane to map from the static coordinates of the StringMorph to the proper global coordinates depending on the amount of scroll (and rotation or scaling if you get really weird).

See, for example,
TransformMorph>>fullDrawOn:
TransformMorph>>canvasForSubmorphs: 

Cheers,
Bob





More information about the Squeak-dev mailing list