Article View: comp.os.ms-windows.programmer.misc
Article #8Newlines in text strings!
From: Sean McLeod
Date: Tue, 27 Oct 1992 11:03
Date: Tue, 27 Oct 1992 11:03
17 lines
1018 bytes
1018 bytes
Hi I'm trying to initialise a mult-line edit control in Windows. I want to initially display a couple of lines of text, e.g an address. I'm curerently using Borland's TEdit class and using TEdit::Insert(LPSTR Text), which inserts the Text string into the edit control at the current text insertion point. I want to specify in my string Text that there should be a line break. I've tried "Name \n Age", however instead of forcing a line break it prints a thin bar representing the \n code. I'm sure there must be a simple way of inserting line breaks into strings. Thanks Sean
Technical Details
Message-ID:
<sean.720183810@sun-3>Path:
arc1-ca.pugleaf.net!sparky!uunet!psgrain!hippo!ucthpx!casper.cs.uct.ac.za!sun-3!seanShow Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!psgrain!hippo!ucthpx!casper.cs.uct.ac.za!sun-3!sean From: sean@sun-3.cs.uct.ac.za (Sean McLeod) Subject: Newlines in text strings! Message-ID: <sean.720183810@sun-3> Sender: news@casper.cs.uct.ac.za (news) Organization: Computer Science Department, University of Cape Town Distribution: global Date: Tue, 27 Oct 1992 11:03:30 GMT Lines: 17