Dialog box resource edit box problem (Borland C++ 3.1)

Dialog box resource edit box problem (Borland C++ 3.1)

Post by WM KEYDO » Fri, 06 Jun 1997 04:00:00



Using Borland C++ v3.1's Resource workshop, I created a simple dialog box
with one multiline edit box in it.
When ever I set the text for this edit box, instead of the text moving to
the next line after a '\n' character is set, it puts a little box instead.
it only wraps to the next line when it has reached the maximum text it can
fit on one line.
How do I make it line feed each time it prints a '\n' ?

Here is the dialog box resource script in case I did something wrong
there:

RESULTSDLG DIALOG 6, 16, 222, 159
STYLE
WS_POPUP|WS_VISIBLE|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_
MAXIMIZEBOX
CAPTION "Results of Search:"
FONT 8, "Arial"
BEGIN
 CONTROL "", 40,"EDIT",
ES_LEFT|ES_MULTILINE|ES_READONLY|WS_CHILD|WS_VISIBLE|WS_BORDER|WS_VSCROLL|
WS_TABSTOP, 3, 2, 217, 155
END

 
 
 

Dialog box resource edit box problem (Borland C++ 3.1)

Post by u.. » Fri, 06 Jun 1997 04:00:00



>Using Borland C++ v3.1's Resource workshop, I created a simple dialog box
>with one multiline edit box in it.
>When ever I set the text for this edit box, instead of the text moving to
>the next line after a '\n' character is set, it puts a little box instead.
>it only wraps to the next line when it has reached the maximum text it can
>fit on one line.
>How do I make it line feed each time it prints a '\n' ?

Instead of using '\n' to indicate a line feed, you have to use the
two character sequence '\r' '\n'.

Isaac

 
 
 

1. Borland C++ 3.1 BWCC Modeless, Iconifiable Dialog Box

Can anybody out there tell me how to use the BWCC to create a Borland style
Dialog box, but which runs Modeless as the main window of my application, and
is Iconifiable to my own Icon ?

This is quite straigtforward using standard TDialogs, ... but as for BWCC ...
I just haven't been able to do it !

Thanks,

Pete Cole

+---------------------------------------------+

+---------------------------------------------+

2. QuickBooks, Quicken, Peachtree,

3. wm_set_text overwrites edit box, Borland Pascal Windows 3.1

4. HUNG LOGINS ON MICRO-VAX

5. Borland C++ 3.1 RTL Matherr Message Box

6. Announce: 3D Visualization with HP OpenView

7. Edit Box on a dialog box

8. Moving a edit control box on a dialogue box

9. Dialog box, edit controls, combo box?

10. OWL DIALOG BOX/EDIT BOX

11. How to change a size of edit box while sizing main dialog box?

12. Problems With Dialog Boxes in Borland C++ 4.5