rsegal
27th March 2003 20:07 UTC
Newline character in INI file
Is there a newline character that can be used in an INI file for a text field. The traditional "\n" doesn't seem to work. If I put
State="ABC\nDEF"
in an INI text field I get
ABC\nDEF
as the output in the text field. Thoughts and/or recommendations?
kichik
27th March 2003 20:10 UTC
\n, \r, and \t work for ValidateText and label's Text.
Joost Verburg
27th March 2003 20:18 UTC
Use \r\n for a newline in a label.
rsegal
27th March 2003 21:30 UTC
Thanks for the suggestions guys. That definitely does work for label's but for text controls that does not seem to work. I was looking to have a large formatted block of text which I could put in an INI file and that it would be displayed formatted so a vertical scroll bar would be required to completely view the text. Is this possible using a text control? Essentially I want a custom LicensePage screen.
kichik
27th March 2003 21:33 UTC
Nope, it's not possible right now. You can however put two Page license directives and in the second one set the texts using WM_SETTEXT. There you can use $\r$\n.
rsegal
27th March 2003 22:02 UTC
Ok thanks.