Carla,

It's not silly when you can't figure out how to do it.  Just glancing at some 
of my code, I think one approach is to use #newTextEditorFor:getText:setText:.  
The receiver is a TEasilyThemed user (StandardWindow is a good example).  The 
first argument is the model, and the last two are selectors for message the 
model should understand.  Give nil for the setter, and I *think* you will get 
what you want.  If not, there will be some type of read-only flag to be set.

Bill



________________________________________
From: [email protected] 
[[email protected]] On Behalf Of Carla F. Griggio 
[[email protected]]
Sent: Saturday, August 07, 2010 6:26 AM
To: Pharo Development
Subject: [Pharo-project] TextMorph without being able to be edited?

Hi again, everyone!

I think this might be really really silly, but I couldn't find a way to show a 
TextMorph without the ability to edit it's text.
If I use a StringMorph to show a paragraph, it looks horrible, but if I use a 
TextMorph and click on it, a blue border appears and I'm able to edit the text, 
I don't want that to happen.

Is there another morph for showing text that only shows text and nothing else? 
Or a property of TextMorph that I'm missing?


Thanks!
Carla

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to