TRVSpellChecker.OnSpellFormAction

<< Click to display table of contents >>

TRVSpellChecker.OnSpellFormAction

Occurs when the user has made a choice in the spelling checking dialog.

type
  TRVSpellFormActionEvent = procedure(
    Sender: TRVSpellChecker;
    const AWord, AReplaceTo: TRVUnicodeString; 
    AAction: TRVSpellFormAction) of object;
 
property OnSpellFormAction: TRVSpellFormActionEvent;

This event occurs when Execute is called, a dialog window is shown, and the user made a choice in this dialog.

AAction

Meaning

rvsfaIgnore

The used decided to ignore a single occurrence of AWord

rvsfaIgnoreAll

The used decided to ignore all occurrences of AWord

rvsfaChange

The used decided to change one occurrence of AWord to AReplaceTo.

rvsfaChangeAll

The used decided to change all occurrences of AWord to AReplaceTo.

rvsfaAdd

The used decided to add AWord to the dictionary.

These operations will be performed by the spell-checker itself. You may perform additional actions in this event.

If you registered all checked editors using RegisterEditor method, you do not need to perform additional actions. Otherwise, if AAction in [rvsfaIgnoreAll, rvsfaAdd], you should call LiveSpellingValidateWord(AWord) for all editors.