• Advertisement

Archived

This topic is now archived and is closed to further replies.

Problems with useing Edit Boxes

This topic is 5822 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I''ve wanted to make a console, like the Quake3 Console, including a Dialog Box for the startup. I''m using for the Messages a Edit Box, but how can I make a line jump? If I use ''\n'' in the string, which I send to SetDlgItemText, I only get a symbol in the EditBox. The same happens when I use ''\t''. My second question is: How can I get a text of a EditBox, without using a Button which will be activated, when you pres enter (after writing the order)? Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Use "\r\n".

Share this post


Link to post
Share on other sites
enable "multiline" or something like that on the edit boxes properties. then ''\n'' will work fine.

Share this post


Link to post
Share on other sites
But make sure to use sprintf to format the text with "\r\n" before you output it.

Share this post


Link to post
Share on other sites
Thanks, it works but what does \r mean?

And has anybody an Idea about my second problem (the Input EditBox without a Button)?

Share this post


Link to post
Share on other sites
\n Is the newline or linefeed symbol, and \r is carridge return. In Windows you need the combination of both b/c the \r tells windows to return the cursor to the start of the row, while, \n says go to next row.

Share this post


Link to post
Share on other sites

  • Advertisement