🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: User clicks on Memo

#4191
From: HF
Date: Wed, 01 Mar 2006 23:26
16 lines
1467 bytes
I think this works ok
//---------------------------------------------------------------------------
void __fastcall TForm1::Memo1Click(TObject *Sender)
{
   TPoint pp = Memo1->CaretPos;
   ShowMessage("Current Line : "+ IntToStr(pp.y+1));
}
//---------------------------------------------------------------------------
-minas

? "Jose" <jose@127.0.0.1> ?????? ??? ?????? 
news:997c029a5t0qjqsm19sajsj7mn1ob6jh1s@4ax.com...
> There are several lines in a Memo. User clicks on a line. How can I
> know which line it was?
> -- 
> Jos� 
Technical Details
Message-ID: <44062da0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <997c029a5t0qjqsm19sajsj7mn1ob6jh1s@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,92a044aea584f07d
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: "HF" <(min_charATyahooPUTADOTgr)(HellenicFire)>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <997c029a5t0qjqsm19sajsj7mn1ob6jh1s@4ax.com>
Subject: Re: User clicks on Memo
Date: Thu, 2 Mar 2006 01:26:20 +0200
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 212.251.110.39
Message-ID: <44062da0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141255584 212.251.110.39 (1 Mar 2006 15:26:24 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail