Jump to content
  • Advertisement


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


New line in edit box?

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

In my game I have this "About" dialog box, and in it I for space saving purposes I use an Edit Box with scroll bars for displaying some text. The text itself is just a null terminated string that I pass to the Edit Box using SendMessage(). However I can''t find out of a way to make Windows understand when I want new line in the Edit Box, so all the text appear in a single paragraph now no matter what I try. How can I force the Edit Box to use new line? In the dialog editor /n works fine, but not when included in the string (just char string[]= "ab/nc". The game can be found here if you want to see what I mean (Soukoban): http://www.jaguarlabs.com/archive/ It''s just a single exe file, so you can just run it from location if you want to. No install needed whatsoever. I am not using any MFC btw!

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!