Results 1 to 7 of 7

Thread: Inserting a new line

  1. #1
    ChimpFace9000
    Guest

    Post 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?

  2. #2
    Zaei
    Guest
    Maybe:
    Code:
    char(13);
    
    ...or...
    
    char(10);
    ..or both.

    Z.

  3. #3
    ChimpFace9000
    Guest
    All that would do is print out "char(13)". I need to insert an actual new line.

  4. #4
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    You need to first set the text box's style to ES_MULTILINE

    Try that and ise \n to get a new line!
    Baaaaaaaaah

  5. #5
    ChimpFace9000
    Guest
    It is set to multiline and for some reason \n doesnt work.

  6. #6
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Have you tried "endl" (I am not sure if it would work but just try it)
    Baaaaaaaaah

  7. #7
    ChimpFace9000
    Guest
    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
  •  



Click Here to Expand Forum to Full Width