🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: User clicks on Memo

#4190
From: JD
Date: Wed, 01 Mar 2006 22:27
21 lines
1404 bytes
Jos� <jose@127.0.0.1> wrote:
>
> There are several lines in a Memo.

This question would have best been asked in the vcl.using
group.

> User clicks on a line. How can I know which line it was?

TMemo has a Text property which returns an AnsiString with
line breaks according to where the hard returns are. TMemo
also has a Lines property but it's based on where the line
wrap is on the screen. Increase or decrease the Width enough
and you'll also change Lines::Count.

Exactly which 'line' do you want?

What are you trying to accomplish?

~ JD
Technical Details
Message-ID: <44062de9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.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: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: User clicks on Memo
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 64.12.116.201     
X-Forwarded-For: 172.168.31.129
References:  <997c029a5t0qjqsm19sajsj7mn1ob6jh1s@4ax.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <44062de9$1@newsgroups.borland.com>
Date: 1 Mar 2006 15:27:37 -0700
X-Trace: newsgroups.borland.com 1141255657 207.105.83.66 (1 Mar 2006 15:27:37 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.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