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.
Getting RVAddictSpell3 live autocorrect to work
-
- Site Admin
- Posts: 17561
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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;