TRVAPopupMenu.OnLiveSpellAdd

<< Click to display table of contents >>

TRVAPopupMenu.OnLiveSpellAdd

Occurs when the user clicks "Add to Dictionary" command in the menu.

type

  TRVALiveSpellAddEvent = procedure (Sender: TRVAPopupMenu;

    Edit: TCustomRichViewEdit; const Word: TRVUnicodeString;

    StyleNo: Integer) of object;

  TRVA2LiveSpellAddEvent = procedure (Sender: TObject;

    Edit: TCustomRichViewEdit; const Word: TRVUnicodeString;

    StyleNo: Integer) of object;

For TRVAPopupMenu:

property OnLiveSpellAdd: TRVALiveSpellAddEvent;

For TRVATBPopupMenu, TRVATBXPopupMenu, TRVASPTBXPopupMenu:

property OnLiveSpellAdd: TRVA2LiveSpellAddEvent;

This event is used for live spelling check.

Word is a word for adding to the custom dictionary.

StyleNo is an index of text style for this word in Edit.Style.TextStyles.

If SpellInterface is used, this command is processed automatically.

Otherwise, use this event for adding word to the user dictionary (this command appear in the menu only if this event is assigned).