TextMorph adapting size to contents

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

TextMorph adapting size to contents

pascal.vollmer
Hi,

I am looking for a TextMorph which adapts its size to an arbitrarily sized content.

By trial and error I could find that

(TextMorph new
        contents: 'abcdefghijklmnopqrstuvwxyz';
        fontName: 'Accuny' pointSize: 24;
        wrapFlag: true;
        autoFit: true;
        wrapFlag: false) openInWorld

does the job. However to turn on and off again the wrapFlag is not really satisfactory.
Is there a better solution ?

Kind regards
Pascal

Pascal Vollmer
Email: [hidden email]

Jetzt komfortabel bei Arcor-Digital TV einsteigen: Mehr Happy Ends, mehr Herzschmerz, mehr Fernsehen! Erleben Sie 50 digitale TV Programme und optional 60 Pay TV Sender, einen elektronischen Programmführer mit Movie Star Bewertungen von TV Movie. Außerdem, aktuelle Filmhits und spannende Dokus in der Arcor-Videothek. Infos unter www.arcor.de/tv
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners