The following two lines should solve the problem if $textfield was
created with the option -multiline => 1  or the ES_MULTILINE-Style:

 $text =~ s/\n/\r\n/g;
 $textfield -> Text ( $text );

Regards,
Uwe.

> Hello!
> 
> I chose to populate a Textfield with a simple text file created with
> notepad. It has several lines and looks like this:
> 
> +line1
> ++line2
> +++line3
> 
> However, display in the textfield is ignoring the eol markers, (though
> they show up as non-display chars..boxes) putting everything on the same
> line like this:
> 
> +line1 ++line2 +++line3
> 
> I"ve tried the method <fmtlines> from Textfield
> looked thru the common methods and FAQ"s but nothing jumps out at me
> 
> 1. Would someone outline the correct approach and
> 2. let me know.....would a write up for the FAQ be helpful on this
> topic..? I"d be happy to
> 
> TIA,
> Mark

Reply via email to