Problem with TextFieldMorph

Vincent Foley vinfoley at iquebec.com
Tue Jul 22 01:39:32 UTC 2003


> 
> What created that text? It has some weird combination of CR and CRLF 
> line endings, as well as a stray ^L (formfeed) character or two...
> 

I don't know, I just did fileOut.  Looks okay in all browsers I use.

> 
> If you use a plain PluggableTextMorph you won't have this problem. Or 
> you could use a TextMorph and then use #acceptOnCR: and #crAction:.
> 
> You can say:
> 
> 	ptm := PluggableTextMorph on: self text: #getSomething accept: 
> #setSomething:.
> 	ptm acceptOnCR: true.
> 

I'm not quite sure I understand what I should put in the text: and
accept: messages.  text: is what the default text should be I guess, but
I don't know what accept: does.

Thanks for the helpful hints :)

Vince

-- 

Vincent Foley-Bourgon
Email: vinfoley at iquebec.com
Homepage: http://darkhost.mine.nu:81



More information about the Squeak-dev mailing list