|
-
Jul 30th, 2001, 04:38 PM
#1
Inserting a new line
Im using wsprintf to set up my text, then im gonna put that text into an edit control. I want a new line at a certain spot in the text so i used "\n". But it get a weird square character. I tried \10\13, \13\10, same thing. Any ideas?
-
Jul 30th, 2001, 05:49 PM
#2
Maybe:
Code:
char(13);
...or...
char(10);
..or both.
Z.
-
Jul 30th, 2001, 06:03 PM
#3
All that would do is print out "char(13)". I need to insert an actual new line.
-
Jul 30th, 2001, 06:16 PM
#4
PowerPoster
You need to first set the text box's style to ES_MULTILINE
Try that and ise \n to get a new line!
-
Jul 30th, 2001, 07:58 PM
#5
It is set to multiline and for some reason \n doesnt work.
-
Jul 30th, 2001, 08:42 PM
#6
PowerPoster
Have you tried "endl" (I am not sure if it would work but just try it)
-
Jul 30th, 2001, 09:29 PM
#7
No, actually i figured it out. Its \r\n instead of just \n.
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
|