Jump to content
  • Advertisement

Archived

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

Exellion

Newline in an editbox

This topic is 5648 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

I have a multiline read-only editbox in my program and it doesn't like me. It wont allow me to write on any line except the first one since the "\n" escape secuence doesn't work. Since there have to be a way to do this I thought I'd ask if someone knows how to do it. This is the code Im using at this moment:
SetDlgItemText(m_hWnd, IDC_OVERVIEWEDIT, "First line:\tThis escape secuence works well\nBut not this one.. I cant enter a new line in the editbox");
  
"He who hasn't hacked assembly language as a youth has no heart. He who does as an adult has no brain." [edited by - Exellion on May 2, 2003 7:15:58 AM]

Share this post


Link to post
Share on other sites
Advertisement
im not sure about this, but don''t you have to write:>

\n\r or is it \r\n

to change line?

In the next 80 years 6 billion people will die...

Share this post


Link to post
Share on other sites
\r\n worked! Thanks!

"He who hasn''t hacked assembly language as a youth has no heart. He who does as an adult has no brain."

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!