change for rvaspell.pas

General TRichView support forum. Please post your questions here
Post Reply
erikvdw
Posts: 40
Joined: Tue Feb 28, 2006 8:27 am

change for rvaspell.pas

Post by erikvdw »

We will suggest a change for the rvaspell.pas:

Add modalresult property in TRVASpell
property ModalResult: TModalResult read FModalResult write FModalResult default mrOK;

And change the function TRVASpellHelper.Check Line 492/493 to:
Self.RVASpell.ModalResult := frm.ShowModal;
FRVASpell.DoSpellFormAction(Self.RVASpell.ModalResult, FWord, frm.cmb.Text);

To do so, you can use for example:
spellchecker.check(rvEditor, rvesFromStart);
if spellChecker.ModalResult <> mrCancel then
ShowMessage('Spellingscheck finished');
erikvdw
Posts: 40
Joined: Tue Feb 28, 2006 8:27 am

some addition information

Post by erikvdw »

I mean the function TRVASpellHelper.ProcessWord instead of check.

Everywhere where mr was used in the function must use Self.RVASpell.ModalResult
So by var declaration delete mr: TModalResult;
Post Reply