SpellCheckSelText(ByVal xhwnd As Long, ByVal controllltype As Bindto) As Boolean
|
Funktion:
|
|
|
|
prüft den angewählten Text auf Fehler und markiert fehlerhafte Wörter mit dem bereits gewählten Stil und der festgelegten Farbe.
|
|
|
|
Sollte die Autokorrekturfunktion aktiv sein, werden in der Autokorrekturliste definierte Wörter nicht markiert, sondern direkt ersetzt. In diesem Fall wird das Event ChangeWord aufgerufen.
|
|
|
|
|
|
|
       
|
  Syntax:
|
|
|
|
|
JRSpell1.SpellCheckSelText x.hwnd, xtype
|
|
|
x.HWND
|
HWND des RTF-Steuerelements, der Textbox oder des Textcontrols
|
|
|
x.type
|
xRtf_Control=1, xText_Box=2, xTX_Textcontroll=3; NetRtf_Control=11
|
|
       
|
  Rückgabewert:
|
|
|
|
|
True wenn Dokument ohne Fehler ist.
löst SelectedTextSpellChecked Event aus.
|
|
|
Beispiel 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
|
|
|
Beispiel TX-Textcontrol:
|
|
|
Private Sub Command8_Click() JRSpell1.ClearAllSelections TXTextControl1.hWnd, TX_Textcontroll JRSpell1.AutoCorrectionOn JRSpell1.SpellCheckSelText TXTextControl1.hWnd, TX_Textcontroll JRSpell1.AutoCorrectionOff End Sub
|
|
|