using Morphs

Ned Konz ned at bike-nomad.com
Mon Mar 17 05:56:18 UTC 2003


On Sunday 16 March 2003 09:23 pm, Janet Abdul-Karim wrote:
> I am trying to create some kind of text report.  I was trying to
> user the TextMorph but everytime i add a new line, I can't see the
> the previous line.  any suggestions on what would be the best thing
> to use would be great.

How were you doing it?
This works for me from a Workspace:

t _ TextMorph new wrapFlag: true.
t openInWorld.
1 to: 20 do: [ :i | t contents: (t contents, String cr, ' line ', i 
asString) ].

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list