SpellCheckDocument(ByVal xhwnd As Long, ByVal controllltype As Bindto) As Boolean
|
Function:
|
|
|
|
spell check the document 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.SpellCheckDocument 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 document contains no incorrect words.
Fires the DocumentSpellChecked event.
|
|
|
Example RTF-Control:
|
|
|
Private Sub Command3_Click() JRSpell1.AutoCorrectionOn JRSpell1.SpellCheckDocument RichTextBox1.hWnd, Rtf_Control JRSpell1.AutoCorrectionOff End Sub
Private Sub JRSpell1_DocumentSpellChecked(CheckedWords As Long, IncorrectSpells As Long) Caption = "Anzahl Wörter " + Str$(CheckedWords) + " / Fehler " + Str$(IncorrectSpells) End Sub
|
|
|
Example TX-Textcontrol:
|
|
|
Private Sub Command3_Click() JRSpell1.AutoCorrectionOn JRSpell1.SpellCheckDocument TXTextControl1.hWnd, TX_Textcontroll JRSpell1.AutoCorrectionOff End Sub
Private Sub JRSpell1_DocumentSpellChecked(CheckedWords As Long, IncorrectSpells As Long) Caption = "Anzahl Wörter " + Str$(CheckedWords) + " / Fehler " + Str$(IncorrectSpells) End Sub
|
|
|