Live Spelling Checking in FireMonkey
Like VCL/LCL version, FireMonkey version of TRichView editor can check spelling in a background thread and mark misspelled words with special red underlines. Words are checked using third-party components in OnSpellingCheck
In this update, TRichViewEdit offers one more option: using a spelling checking service provided by the current platform. Currently, FireMonkey implements this service for macOS. To activate this feature, assign TRichViewEdit.CheckSpelling
= True. With a platform service, you do not need to assign any events, everything works automatically.
Ok, misspelled words are found and marked, how to correct them?
Suggestions for correction of the current misspelled word can be added to a popup menu. If your editor uses the standard popup menu (when PopupMenu property is not assigned), suggestions are added automatically. If you use a custom popup menu, you can use AddSpellingMenuItems
to add suggestions to your menu.
If you use a third-party spelling checker, you can assign OnGetSpellingSuggestions
to provide information for adding spelling menu items.