SystemWindow question

Kevin Fisher kgf at golden.net
Sat Oct 13 16:34:21 UTC 2001


Hi folks:

I've never had much luck with SystemWindows in the past...they never do
what I want them to do and I spend hours playing with methods that only
make the situation worse...which is why I avoid programming with them,
usually. :)

My question:

I have a Morph...actually, it's an AlignmentMorph that I'm adding other
Morphs to.  When I'm done adding morphs, I'd like to plunk the whole
thing down in a SystemWindow and have the SystemWindow actually wrap around
the border of the topmost Morph (in my case, the AlignmentMorph).  Nothing
I've tried seems to work..I always get a SystemWindow that is the wrong
size with my morphs sticking out all over the place.

I know that I can use the SystemWindow to make contained morphs conform
to the contstraints of the SystemWindow (using addMorph:frame:), but how
do I do the converse?  For what I want to do, using addMorph:frame: isn't
terribly convenient.

Any advice would be appreciated!




More information about the Squeak-dev mailing list