Thanks for the response. The problem, however, is that in these examples I am forced to manually set the extents of the PasteUpMorph. I simply want to to tell it to fill its container window and be done with it.
Again, perhaps I'm using the wrong morph for the job. I want to display a vertically scrollable list of text morphs. The width of the text morphs should resize with the container window (as the single one does in a SystemWindow). I chose PasteUpMorph as the container for the texts, and they act as I want them to. The problem is getting the PasteUpMorph itself to follow the outlines of its own parent.
On 9/25/05, Matej Košík kosik@fiit.stuba.sk wrote:
Steve Greenberg wrote:
As a learning exercise, I'm writing an outliner in morphic (using 3.8-6665 on WinXP).
For some reason I am unable to make the PasteUpMorph fill the size of the containing widget and have to resize it manually.
If I understand your problem correctly then you can try to look at this.
http://minnow.cc.gatech.edu/squeak/3875
There are some examples which might interest you.
To build it, I create a SystemWindow, add a ScrollPane, and then add a PasteUpMorph. I tried setting the PasteUpMorph's hResizing to #spaceFill, but no go. I tried sending layoutChanged to everyone in the chain, but that didn't help either.
Should I be using a different morph for this?
As a side note, I've noticed that GeeMailMorph exhibits this same
behavior.
Regards
Matej Košík