Autocorrection

General TRichView support forum. Please post your questions here
Post Reply
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Autocorrection

Post by Jim Knopf »

What is the easyest way of autocorrection?

I plan to offer users the option of an list that contains individual replacements. During writing special strings as ^x should be automatically replaced by a word or phrase.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can see the source code of function RVA_Addict3AutoCorrect in RichViewActions.pas.
It is assumed that this function is called from OnKeyDown (when Enter is pressed) and in OnKeyPress (when tab, space or other delimiter characters are pressed). If the current word has a correction, it replaces it.
Post Reply