Line Breaks don't work in Multiline CEdit control 
Author Message
 Line Breaks don't work in Multiline CEdit control

Hi,

In the VC ResourceView, when I check the Properties | Styles | Multiline
checkbox for a CEdit control, I would expect, at the least, that a long
string would wrap around.  What I'd really like to do is put in line breaks
"\n".

But, not only can't I get "\n" to result in a newline, but the long string
doesn't wrap around!!!

What am I missing here!

Thanks for any help!

Ken Rahmes



Mon, 02 Jul 2001 03:00:00 GMT  
 Line Breaks don't work in Multiline CEdit control
Ken,
I believe you need to check vertical scroll check box as well.

Hope this helps.

Regards,

Adnan

Quote:

>Hi,

>In the VC ResourceView, when I check the Properties | Styles | Multiline
>checkbox for a CEdit control, I would expect, at the least, that a long
>string would wrap around.  What I'd really like to do is put in line breaks
>"\n".

>But, not only can't I get "\n" to result in a newline, but the long string
>doesn't wrap around!!!

>What am I missing here!

>Thanks for any help!

>Ken Rahmes




Mon, 02 Jul 2001 03:00:00 GMT  
 Line Breaks don't work in Multiline CEdit control
Hi Ken,

You need to uncheck the horizontal scroll to make it wrap.  And when you want to
break the line with a CR you must use \r\n.

HTH
--
=================
Frank Hickman
NobleSoft, Inc.


=================



Tue, 03 Jul 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. CEdit Multiline Control, adding new lines.

2. Set text color for 1 line in a CEdit control (MultiLine)

3. CEdit multiline Get line by line ?!?

4. CEdit don't work at GetLine() well

5. CEdit.SetSel don't work as expected

6. break points - don't break??

7. Help Wnet API's don't seem to work under WINNT Service Control Manager

8. Add line to a multiline CEdit

9. Tree Control Edit Boxes Don't Work Properly

10. WS_TABSTOP controls don't work with my CWnd

11. Tree Control Edit Boxes Don't Work Properly

12. Transparent Controls Don't Always Work in XP

 

 
Powered by phpBB® Forum Software