Bounding up morphs
ned at bike-nomad.com
Thu Jan 30 17:20:31 UTC 2003
On Thursday 30 January 2003 09:01 am, Eric Scharff wrote:
> I have a task where I create a fairly large (hundreds) number of
> related morphs and position them in such a way that is not suitable
> for a layout manager. I want to move / delete these morphs
> together, so I want to group them, doing something like this
> groupMorph _ Morph new.
> "for each object I create"
> myMorph _ MyMorph doTheRightThing.
> groupMorph add: myMorph.
> What is the easiest way to set the extent of groupMorph so that it
> encloses all of the sub-morphs? Right now it uses its default
> bounds, which has all sorts of problems with halos and redrawing.
(addAllMorphs isn't necessary but is more efficient).
GPG key ID: BEEA7EFE
More information about the Squeak-dev