Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28538 Discussions

Write multi-line text to an Edit Box

cgdavila
Beginner
836 Views
I am trying to write a matrix into a single Edit box. How do I get a carriage return so that I can print more than one line?
I also tried the Rich Edit Box, but I can't get it to work, and can't find any instructions.
0 Kudos
3 Replies
Intel_C_Intel
Employee
836 Views
Double-click on the edit box at design time, select ?styles? in the ?Edit properties? pup-up menu and mark ?Multiline?.

Sabalan.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
836 Views
First you have to give the edit box multi-line (ES_MULTILINE) style. If I recall correctly, when writing into the edit box lines should be terminated with CHAR(13)//CHAR(10). (Or maybe 13-13-10). You may also consider ES_WANTRETURN style if you want the contents to be editable.
0 Kudos
Steven_L_Intel1
Employee
836 Views
Just 13-10 (CR-LF) as line separators.
0 Kudos
Reply