General TRichView support forum. Please post your questions here
Jim Knopf
Posts: 241 Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:
Post
by Jim Knopf » Tue Dec 31, 2013 2:20 pm
Hi,
how can I retrieve the current word at the caret position? Something like SelectCurrentWord but no selection instead of it the word as result of a function.
e.g.
Sergey Tkachenko
Site Admin
Posts: 17565 Joined: Sat Aug 27, 2005 10:28 am
Contact:
Post
by Sergey Tkachenko » Wed Jan 01, 2014 6:24 pm
Use GetCurrentWord function from RVGetTextW unit (or from RVGetText, if you want an AnsiString version)
Jim Knopf
Posts: 241 Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:
Post
by Jim Knopf » Thu Jan 02, 2014 9:30 am
Oh, very cool collection!
Thanks