Article View: borland.public.cppbuilder.nativeapi
Article #4193Re: User clicks on Memo
From: Jos�
Date: Thu, 02 Mar 2006 08:34
Date: Thu, 02 Mar 2006 08:34
16 lines
1364 bytes
1364 bytes
On Thu, 2 Mar 2006 01:26:20 +0200, "HF"
<(min_charATyahooPUTADOTgr)(HellenicFire)> wrote in
borland.public.cppbuilder.nativeapi:
>void __fastcall TForm1::Memo1Click(TObject *Sender)
>{
> TPoint pp = Memo1->CaretPos;
> ShowMessage("Current Line : "+ IntToStr(pp.y+1));
>}
This is exactly what I needed. I also find that CaretPos is not in the
help file as a property of TMemo, so I do not blame myself for being
unable to find it.
Thanks.
--
Jos�
Technical Details
Message-ID:
<uebd02h8q30nh0j7f24mumu7ngv8i50i3u@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.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-mailReferences:
<997c029a5t0qjqsm19sajsj7mn1ob6jh1s@4ax.com> <44062da0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,92a044aea584f07d X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: Jos� <jose@127.0.0.1> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: User clicks on Memo Date: Thu, 02 Mar 2006 09:34:50 +0100 Message-ID: <uebd02h8q30nh0j7f24mumu7ngv8i50i3u@4ax.com> References: <997c029a5t0qjqsm19sajsj7mn1ob6jh1s@4ax.com> <44062da0@newsgroups.borland.com> X-Newsreader: Forte Agent 3.2/32.830 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 82.75.14.62 X-Trace: newsgroups.borland.com 1141288500 82.75.14.62 (2 Mar 2006 00:35:00 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.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