🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6381

AnsiString and the LineFeed char

#6381
From: Robert G. Hoover
Date: Wed, 11 May 2005 20:36
24 lines
1852 bytes
Is is possible to feed an AnsiString into a TMemo->Lines and hardcode 
linefeeds?

I'm trying to create multi-line hints and use the Application->OnHint 
function to display my hints in a TMemo. I'd like to do something like 
this... (pardon the mailer formatting)

MyButton->Hint = "Click here to do something.\nThis is useful for the 
following reasons :\n1. good for you\n2.good for me\n3.good for them";

// long hint handler
void __fastcall THintForm::DisplayHint(TObject *Sender)
{
	HintMemo->Lines->Clear();
	HintMemo->Lines->Add(GetLongHint(Application->Hint));
}
//---------------------------------------------------------------------------

I've tried CommaText and DelimitedText, but both of those break out my 
hint into 1 word per line.

Thanks so much!!!

Rob
Technical Details
Message-ID: <42826ce0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,617c7c48d8598286,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 11 May 2005 16:36:40 -0400
From: "Robert G. Hoover" <not.a.real.address@anywhere.sorry>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: AnsiString and the LineFeed char
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 0519-1, 05/10/2005), Outbound message
X-Antivirus-Status: Not-Tested
NNTP-Posting-Host: 68.48.159.204
Message-ID: <42826ce0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115843808 68.48.159.204 (11 May 2005 13:36:48 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail