rvico TRichView Reference | TRichView

TCustomRichView.OnSpellingCheck

Top  Previous  Next

Allows to mark misspelled words

type

  TRVSpellingCheckEvent = procedure (Sender: TCustomRichView;

    const AWord: String; StyleNo: Integer;

    var Misspelled: Boolean) of object;

 

property OnSpellingCheck: TRVSpellingCheckEvent;

(introduced in v1.9)

This event is called for each word in the document.

Example (using Addict3 spelling checker):

procedure TMyForm.MyRichViewEditSpellingCheck(Sender: TCustomRichView;

  const AWord: String; StyleNo: Integer; var Misspelled: Boolean);

begin

  Misspelled := not MyRVAddictSpell3.WordAcceptable(AWord);

end;

This event is called in thread context.

 

See also:

Live spelling check in RichView.


RichView © Sergey Tkachenko