Thanks, Gary!
And now the next question:
If I place this one in a surrounding pane / expander / tab, how do I get the
surrounding morph to resize when the text changes?
Cheers,
Doru
On 22 Aug 2011, at 12:15, Gary Chambers wrote:
> Hi Doru
>
>
> |textMorph|
> textMorph := UITheme builder newText: ''.
> textMorph
> hResizing: #spaceFill;
> borderWidth: 1.
> (UITheme builder newColumn: {textMorph}) openInWindow.
> textMorph contentsWrapped: 'Some text here
>
> Get a halo and inspect the text morph
> then use #contentsWrapped: to change text
>
>
> and see the results!
>
> #rigid hResizing also works.'
>
>
>
> Have fun!
>
> Regards, Gary
>
> ----- Original Message ----- From: "Tudor Girba" <[email protected]>
> To: "Pharo Development" <[email protected]>
> Sent: Sunday, August 21, 2011 11:57 PM
> Subject: [Pharo-project] expanding text morph
>
>
> Hi,
>
> I would like to create a Text Morph that wraps the text horizontally, and
> expands the height to fit the text. Thus, this morph would never offer
> scrolling.
>
> How could I do that?
>
> Cheers,
> Doru
>
>
> --
> www.tudorgirba.com
>
> "There are no old things, there are only old ways of looking at them."
>
>
>
>
>
--
www.tudorgirba.com
"Next time you see your life passing by, say 'hi' and get to know her."