[HELP] Adjusting a TextMorph in a PasteUpMorph

Bob Arning arning at charm.net
Sun Oct 17 17:11:27 UTC 1999


On Sun, 17 Oct 1999 11:51:32 -0400 Hannes Hirzel <Hannes_Hirzel at compuserve.com> wrote:
>This works fine without the statements marked "***". However my specific
>question: Why doesn´t the text in the TextMorph wrap within the page?
>Either the statement marked "***1" nor the statement "***2" helps. The
>second one even gives an error message. When using direct manipulation
>(TextMorph -> menu -> "fill owner´s shape") the message "fillingOnOff"
>works fine.

Hannes,

Use #contentsWrapped: instead of #contents: when creating "t" as in:

b currentPage addMorph: (t := TextMorph new fit; contentsWrapped: 'blah....' 

The filling/text container stuff only works when wrapping is on.

Cheers,
Bob





More information about the Squeak-dev mailing list