Only 1 spell check suggestion shown in RVAPopupMenu
Posted: Tue Jul 19, 2011 3:03 pm
Hi,
I'm using Addict4 with TDBRichViewedit. Live spell checking is working, but I can only get 1 suggestion to appear in the RVAPopupMenu when I right click on the misspelled word. In the code for the RVAPopupMenu1LiveSpellGetSuggestions event (see below), I can see that Addict is returning many suggestions and populating the suggestions Tstrings correctly - for example the word "ca" has 21 suggestions. But only 1 is shown in the popup menu.
procedure TElementEditor.RVAPopupMenu1LiveSpellGetSuggestions(
Sender: TRVAPopupMenu; Edit: TCustomRichViewEdit; const Word: string;
StyleNo: Integer; Suggestions: TStrings);
begin
AddictSpell1.Suggest(word, suggestions);
end;
In the RVAPopupmenu, I have tried with maxsuggestioncount = 0 and also a fixed number such as 15. In either case, I get only 1 suggestion shown.
Do you have any suggestions?
Thanks,
Mike Simmons
I'm using Addict4 with TDBRichViewedit. Live spell checking is working, but I can only get 1 suggestion to appear in the RVAPopupMenu when I right click on the misspelled word. In the code for the RVAPopupMenu1LiveSpellGetSuggestions event (see below), I can see that Addict is returning many suggestions and populating the suggestions Tstrings correctly - for example the word "ca" has 21 suggestions. But only 1 is shown in the popup menu.
procedure TElementEditor.RVAPopupMenu1LiveSpellGetSuggestions(
Sender: TRVAPopupMenu; Edit: TCustomRichViewEdit; const Word: string;
StyleNo: Integer; Suggestions: TStrings);
begin
AddictSpell1.Suggest(word, suggestions);
end;
In the RVAPopupmenu, I have tried with maxsuggestioncount = 0 and also a fixed number such as 15. In either case, I get only 1 suggestion shown.
Do you have any suggestions?
Thanks,
Mike Simmons