ComponentOne Spell 8.0 for ActiveX
CheckTyping Method

Start spell checking a control as the user types.

Syntax

[form!]VSSpell.CheckTyping hWnd As Long

Remarks

The hWnd parameter passed to this method should correspond to an EditBox or RichEditBox control. After calling this method, VSSpell will start monitoring the target control as the user types into it. After each word is typed, VSSpell checks the word against the active dictionaries, the IgnoreAll array and the ChangeAll array.

If a word is not found, VSSpell fires the TypingError event and executes the actions specified by the TypingErrorAction property. By default, VSSpell beeps and underlines the offending word with a wiggly red line, similar to the one used to highlight typing errors in Microsoft Word.

If the word is found in the ChangeAll array, it is automatically replaced with the corresponding entry in the ChangeAllTo array.

When a correct word is detected, VSSpell fires the TypingOK event. This event may be used to reset user-interface elements that alert the user of typing errors.

Note: While spell checking a control as the user types, the Text property is not used by VSSpell. This is done for efficiency since the contents of the control change constantly as the user types.

See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback