Zur Startseite

JRSpellChecker

Zur Homepage

SpellCheckStringWithDialog(Text As String)As String

Function:

checks a given string in a own correction dialog. The user can select the words from the listbox, use the popup or the Spell-As-You-Type function.
The function returns the spelled text.

Jrspellstringdialoge
All dialoges can be viewed in different languages look at the
UILanguage

       

Select a other Word:

  • The user can type in text in the edit field.
  • The user can select a word in the list
  • The user select a word from popup list

 

Use "Change All" to change the same words.


 

ShowChangeAllButton must be activated.

     

    You can set some style flags for the correction window.

    JRSpell1.CorrectionDialogActions=UseSpellAsyouType & UseLeftMouseButtonSpell & ShowModalForm & SearchNextAfterClickList & ShowAddButtonLokalWordBook & ShowAddButtonMSWord & ShowChangeButton & ShowIgnoreAllButton & ShowChangeAllButton

    In use of UseSpellAsyouType and UseLeftMouseButtonSpell you can activate the SpellAsYouType and Popup function of this dialog.

ico_syntax Syntax:

JRSpell1.SpellCheckStringWithDialog xText

xText

the string for spelling

       

ico_weitere   Return value:


the spelled string.

Example RTF-Control:

    'set options for the correction dialogue
    JRSpell1.CorrectionDialogActions = UseLeftMouseButtonSpell + UseSpellAsyouType + SearchNextAfterClickList + ShowAddButtonLokalWordBook + ShowAddButtonMSWord + ShowChangeButton + ShowIgnoreAllButton + ShowChangeAllButton

    RichTextBox1.Text = JRSpell1.SpellCheckStringWithDialog(RichTextBox1.Text)

Example TX-Textcontrol:

    'set options for the correction dialog
    JRSpell1.CorrectionDialogActions = UseLeftMouseButtonSpell + UseSpellAsyouType + SearchNextAfterClickList + ShowAddButtonLokalWordBook + ShowAddButtonMSWord + ShowChangeButton + ShowIgnoreAllButton + ShowChangeAllButton

    TXTextControl1.Text =
    JRSpell1.SpellCheckStringWithDialog(TXTextControl1.Text)

Example Textbox:

    'set options for the correction dialog
    JRSpell1.CorrectionDialogActions = ShowAddButtonLokalWordBook + ShowAddButtonMSWord + ShowChangeButton + ShowIgnoreAllButton + ShowChangeAllButton

    Text1.Text = JRSpell1.SpellCheckStringWithDialog(Text1.Text)

Note: Use in .Net or Web applications the ShowModalForm switch of CorrectionDialogActions.