How to set text into CEdit (Multiline) 
Author Message
 How to set text into CEdit (Multiline)

How can I set text, which I read from file, into a multiline CEdit?


Fri, 06 Jun 2003 02:58:02 GMT  
 How to set text into CEdit (Multiline)
You can use SetWindowText(...) to place data into your control.

A couple points of interest:

* Convert your text file line-feeds ("\n") to carriage-return line-feed
pairs ("\r\n").
* Take a look a CEdit::SetSel() for controlling concatenation and text
selection

TFM3

Note: Spam-resistant e-mail address


Quote:
> How can I set text, which I read from file, into a multiline CEdit?



Fri, 06 Jun 2003 03:32:07 GMT  
 How to set text into CEdit (Multiline)

Quote:

> How can I set text, which I read from file, into a multiline CEdit?

The text must contain "\r\n" for line breaks.  Call SetWindowText to the CEdit.

--
Scott McPhillips [VC++ MVP]



Fri, 06 Jun 2003 03:32:46 GMT  
 How to set text into CEdit (Multiline)
Use ReplaceSel("More text \r\n") if you want to add new lines to the bottom
of the CEdit, rather than overwriting whatever is already there.


Quote:
> How can I set text, which I read from file, into a multiline CEdit?



Sat, 07 Jun 2003 01:55:10 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. How to set multiline text in a CEdit?

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

3. Colored text in MultiLine CEdit

4. Text erases itself in my multiline CEdit ! Help

5. again, CEdit multiline text

6. Need to Set text from Dialog CEdit to Active Window in MDI text app

7. Setting Text in CEdit with SetWindowText()

8. Setting text in CEdit ctrl

9. Setting text and background color in CEdit

10. multiple-line CEdit set multi-line text

11. How to set text in CEdit

12. Setting CEdit Text in Modal Dialog

 

 
Powered by phpBB® Forum Software