Please see the DevExpressRichEdit demo project, which covers as you type and dialog spell checking support. We will be documenting this based on useage so let us know if you're using it and/or need help please (support@keyoti.com).
It may help to refer to the demo projects which are included with the product.
At this stage the spell check should work, however a few changes are needed for optimal integration.
In v19 TX controls the context menu internally, therefore it is necessary to integrate with it, rather than control it.
ContextMenuStrip cm = e.TextContextMenu; //Get the RS items ToolStripItem[] suggestions = rapidSpellDialog1.GetSuggestionsToolStripItems(); //if there are suggestions (ie if the click was on a spelling error), show them if (suggestions != null) { cm.Items.Add(new ToolStripSeparator()); cm.Items.AddRange(suggestions); }
RapidSpellDialog will need to control the ContextMenuStrip for the Text Control. Therefore, unset the TextControl.ContextMenuStrip property in the designer, to null/Nothing/none. Then set RapidSpellDialog's ContextMenuStripDefault property to the ContextMenuStrip to use when the user clicks away from a spelling error.
In the regular TX Text Control examples, there is a MouseDown event handler, which is used to show the regular 'text context menu'. This should be commented out, so that the context menu strip is not manually shown on the MouseDown event - RapidSpell will take care of this.
In the regular TX Text Control examples, there is a TextFrameRightClicked event handler, which shows the context menu for textframes when the user right clicks on a frame edge. Modify textControl1_TextFrameRightClicked, by adding
//C# if (rapidSpellDialog1.GetSuggestionsToolStripItems() == null) { ... }
'VB.NET If RapidSpellDialog1.GetSuggestionsToolStripItems() Is Nothing Then ... End If
To reset the words that have been ignored for a document, call
rapidSpellDialog1.ResetIgnoredWords()
For example this would normally be done in these methods from the demo project; frmMain_DragDrop, textControl1_DragDrop, FileOpen, FileNew.