logo       

Re: Text with Link: msg#00024

lang.smalltalk.squeak.beginners

Subject: Re: Text with Link

Hilaire Fernandes a écrit :
How can I append a link to a text in a text morph?

I am trying without success:

| t m |
m := TextMorphPlus new openInWorld.
t := Text
string: 'hello '
attribute: (TextColor red).
t append: (Text
string: ' TOTO'
attribute: (TextLink scanFrom: (ReadStream on: 'LMorph new;'))).

and I forgot the last line

m contents: (t).


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise