Archived

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

El_Bosso

Problems with useing Edit Boxes

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
\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