SpellCheckSelText(ByVal xhwnd As Long, ByVal controllltype As Bindto) As Boolean
|
Function:
|
|
|
|
spell check the selected text and marks the incorrect words with the style already selected.
|
|
|
|
If you have the AutoCorrection function active, then all in the autocorrectionlist defined words will be directly replaced. The replace is in use of the ChangeWord event.
|
|
|
|
|
|
|
       
|
  Syntax:
|
|
|
|
|
JRSpell1.SpellCheckSelText x.hwnd, xtype
|
|
|
x.HWND
|
HWND of the RTF-Control, the textbox or the TX-Textcontrol.
|
|
|
x.type
|
xRtf_Control=1, xText_Box=2, xTX_Textcontroll=3; NetRtf_Control=11
|
|
       
|
  Return value:
|
|
|
|
|
True if the selected text contains no incorrect words.
Fires the SelectedTextSpellChecked event.
|
|
|
Example RTF-Control:
|
|
|
Private Sub Command4_Click() JRSpell1.ClearAllSelections RichTextBox1.hWnd, Rtf_Control JRSpell1.AutoCorrectionOn JRSpell1.SpellCheckSelText RichTextBox1.hWnd, Rtf_Control JRSpell1.AutoCorrectionOff RichTextBox1.SelLength = 0 End Sub
|
|
|
Example TX-Textcontrol:
|
|
|
Private Sub Command8_Click() JRSpell1.ClearAllSelections TXTextControl1.hWnd, TX_Textcontroll JRSpell1.AutoCorrectionOn JRSpell1.SpellCheckSelText TXTextControl1.hWnd, TX_Textcontroll JRSpell1.AutoCorrectionOff End Sub
|
|
|