TRVAPopupMenu.OnLiveSpellGetSuggestions

Top  Previous  Next

Occurs when the menu needs to add items containing suggestions for the current misspelled word.

type

  TRVALiveSpellGetSuggestionsEvent = procedure (Sender: TRVAPopupMenu;

    Edit: TCustomRichViewEdit; const Word: String; StyleNo: Integer;

    Suggestions: TStrings) of object;

  TRVA2LiveSpellGetSuggestionsEvent = procedure (Sender: TObject;

    Edit: TCustomRichViewEdit; const Word: String; StyleNo: Integer;

    Suggestions: TStrings) of object;

For TRVAPopupMenu:

property OnLiveSpellGetSuggestions: TRVALiveSpellGetSuggestionsEvent 

For TRVATBPopupMenu, TRVATBXPopupMenu, TRVASPTBXPopupMenu:

property OnLiveSpellGetSuggestions: TRVA2LiveSpellGetSuggestionsEvent 

This event is used for live spelling check.

Word is a misspelled word.

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

Add suggestions to Suggestions.

If Addict 3 is used, this event is not called, this command is processed automatically.

Otherwise, use this event for generating suggestions.

See also:

MaxSuggestionsCount


RichView © Sergey Tkachenko