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: TRVUnicodeString; StyleNo: Integer;

    Suggestions: TRVASpellStringsof object;

  TRVA2LiveSpellGetSuggestionsEvent = procedure (Sender: TObject;

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

    Suggestions: TRVASpellStringsof 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 SpellInterface is used, this command is processed automatically.

Otherwise, use this event for generating suggestions.

See also:

MaxSuggestionsCount


RichViewActions © trichview.com