Page 1 of 1

change for rvaspell.pas

Posted: Tue Jan 30, 2007 12:54 pm
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');

some addition information

Posted: Tue Jan 30, 2007 12:59 pm
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;