Entering new lines in edit box
-
Hi all! In my aplication I have an edit box (1) where the user can add text that will appear in other edit box (2). In (2) each text is concatenated with prior one, but when I try to concatenate "\n" so the next text appear in a new line, I get a strange character between two texts instead of a new line. The edit box (2) is a read-only one and Want_Return mode is selected. How could I concatenate the texts so each one appears in new lines? Thank you in advance.
-
Hi all! In my aplication I have an edit box (1) where the user can add text that will appear in other edit box (2). In (2) each text is concatenated with prior one, but when I try to concatenate "\n" so the next text appear in a new line, I get a strange character between two texts instead of a new line. The edit box (2) is a read-only one and Want_Return mode is selected. How could I concatenate the texts so each one appears in new lines? Thank you in advance.
satcat wrote: ...I get a strange character between two texts instead of a new line. Are you using the
ES_MULTILINE
style? satcat wrote: How could I concatenate the texts so each one appears in new lines? Use\r\n
instead.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Hi all! In my aplication I have an edit box (1) where the user can add text that will appear in other edit box (2). In (2) each text is concatenated with prior one, but when I try to concatenate "\n" so the next text appear in a new line, I get a strange character between two texts instead of a new line. The edit box (2) is a read-only one and Want_Return mode is selected. How could I concatenate the texts so each one appears in new lines? Thank you in advance.
You need to use ES_MULTILINE style and should append "\r\n", rather than just the line feed. onwards and upwards...