🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.opentoolsapi
Article #59

Re: Finding the closest word!

#59
From: Gerrit Beuze
Date: Fri, 06 Jun 2008 14:39
13 lines
1319 bytes
> In which way could I obtain the word closest to the
> cursor in the currently open file in the editor?

There's nothing build in the ToolsAPI that does this.

Use IOTAEditView to get the cursor position,
and the corresponding charpos
Use TEditorReader to read the code at that position
(probably the entire line)
Write a procedure that does what you need.

Gerrit Beuze
ModelMaker Tools 
Technical Details
Message-ID: <48494c2c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <484943a2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c3df,c6f0392dc84068d7
X-Google-Attributes: gid10c3df,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Gerrit Beuze" <gerrit[at][-nospam]modelmakertools[dot]com>
Newsgroups: borland.public.delphi.opentoolsapi
References: <484943a2@newsgroups.borland.com>
Subject: Re: Finding the closest word!
Date: Fri, 6 Jun 2008 16:39:32 +0200
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 91.56.127.135
Message-ID: <48494c2c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1212763180 91.56.127.135 (6 Jun 2008 07:39:40 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail