Getting RVAddictSpell3 live autocorrect to work

General TRichView support forum. Please post your questions here
Post Reply
johnF
Posts: 27
Joined: Mon Feb 02, 2015 4:41 pm

Getting RVAddictSpell3 live autocorrect to work

Post by johnF »

Hi,

In "actiontestaddict" demo, I can set "jimr" to autocorrect to "JimR" as I type.

However I am struggling to get that to happen in my own project.

I don't see any attach option for this post, but if you can let me know what needs changed after adding a TRichViewEdit and TRVAddictSpell3 to a new form that should be enough.

I know how to add Auto-Corrections to Custom Dictionary after clicking Options in spell check dialog.

Thanks, Jim.
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

See the commented code in the main unit of ActionTest projects.

Code: Select all

procedure TForm3.RichViewEdit1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  {
  // uncomment if you use Addict3
  if Key = VK_RETURN then
    RVA_Addict3AutoCorrect(RichViewEdit1);
  }
  ...
end;

procedure TForm3.RichViewEdit1KeyPress(Sender: TObject; var Key: Char);
begin
  {
  // uncomment if you use Addict3
  if (Key in ['''', #13, #9]) or (Pos(Key, RichViewEdit1.Delimiters)<>0) then
    RVA_Addict3AutoCorrect(RichViewEdit1);
  }
  ...
end;
Post Reply