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
Only 1 spell check suggestion shown in RVAPopupMenu
-
- Posts: 29
- Joined: Mon Oct 25, 2010 3:59 pm
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
It happens because all live spelling suggestions are added as menu items having Default property = True. It works fine in WinXP (it just displays them bold), but it looks like newer versions of Windows do not allow more than one default menu item.
It will be fixed in the next update of RichViewActions.
If you need a fix urgently, open RichViewActions.pas, find the assignment of Default property to a menu item, and delete it from the code.
It will be fixed in the next update of RichViewActions.
If you need a fix urgently, open RichViewActions.pas, find the assignment of Default property to a menu item, and delete it from the code.
-
- Posts: 29
- Joined: Mon Oct 25, 2010 3:59 pm