-
January 20th, 2009, 04:13 AM
#1
EditBox problem
How to display the text on new line everytime the updateData(FALSE) is executed?
The editbox is in disable mode
-
January 20th, 2009, 04:23 AM
#2
Re: EditBox problem
Originally Posted by scorrpeio
How to display the text on new line everytime the updateData(FALSE) is executed?
First of all your edit control must have ES_MULTILINE style plus either ES_AUTOVSCROLL or ES_WANTRETURN (please, read the MSDN about using these styles).
Inserting "\r\n" in the text to be displayed in the edit control will cause the line break.
The editbox is in disable mode
It does not make any sense.
Victor Nijegorodov
-
January 20th, 2009, 04:25 AM
#3
Re: EditBox problem
First resize your edit control, then set multiline property and then use a CString variable with \r\n before of every new line.
Code:
m_strMulti = _T("Line 1 \r\n New Line");
-
January 20th, 2009, 04:30 AM
#4
Re: EditBox problem
The editbox is in disable mode
You mean you cannot manually input text there? That is called "read-only" state, not "disable mode".
-
January 20th, 2009, 07:16 AM
#5
Re: EditBox problem
Thank you everybody!!!
It is working.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|