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');
change for rvaspell.pas
some addition information
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;
Everywhere where mr was used in the function must use Self.RVASpell.ModalResult
So by var declaration delete mr: TModalResult;