multiple-line CEdit set multi-line text 
Author Message
 multiple-line CEdit set multi-line text

Hi all,
I have a CEdit window in which I want to put some text automatically.
The text is multi-line, each line inidcated by ansi-C '\n'.

Which function should I use to fill the CEdit-Text with
"Hello. This is the first line. \n Second! \n Third... \n" ?
I tried SetWindowText, but it's all written into one line with the '\n'
character looking like | .

Thanx for help,
Guido



Fri, 14 Feb 2003 03:00:00 GMT  
 multiple-line CEdit set multi-line text
This is a common problem and the solution that is always posted is to use to
use \r\l ( carriage-return and line-feed ) instead of \n


Quote:

> Hi all,
> I have a CEdit window in which I want to put some text automatically.
> The text is multi-line, each line inidcated by ansi-C '\n'.

> Which function should I use to fill the CEdit-Text with
> "Hello. This is the first line. \n Second! \n Third... \n" ?
> I tried SetWindowText, but it's all written into one line with the '\n'
> character looking like | .

> Thanx for help,
> Guido



Fri, 14 Feb 2003 03:00:00 GMT  
 multiple-line CEdit set multi-line text
Of course you really meant to say "\r\n".


Quote:
> This is a common problem and the solution that is always posted is to use
to
> use \r\l ( carriage-return and line-feed ) instead of \n



> > Hi all,
> > I have a CEdit window in which I want to put some text automatically.
> > The text is multi-line, each line inidcated by ansi-C '\n'.

> > Which function should I use to fill the CEdit-Text with
> > "Hello. This is the first line. \n Second! \n Third... \n" ?
> > I tried SetWindowText, but it's all written into one line with the '\n'
> > character looking like | .

> > Thanx for help,
> > Guido



Fri, 14 Feb 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Set text color for 1 line in a CEdit control (MultiLine)

2. CEdit multiline Get line by line ?!?

3. How can I get the text in CEdit(Multi-line)

4. Adding multiple lines of text to a CEdit

5. Opening a text file/Displaying text line by line

6. CEdit multi-line Q

7. Multi-line CEdit and "\n"

8. Add line to a multiline CEdit

9. Multi-line CEdit

10. Question regarding multi-line CEdit problem(s)

11. Q:Multi-line CEdit Control

12. Multi-Line CEdit problem with TabStop (take 2).

 

 
Powered by phpBB® Forum Software