ComponentOne Spell 8.0 for ActiveX
Suggestions

Leave the Suggest property set to the default setting, True. This causes replacement suggestions for the bad word (if any are generated) to be displayed. The Suggestion event is fired each time a new suggestion is added to the Suggestion property array. The BadWord event is fired after the last Suggestion event for a word is fired. When the suggestions are displayed, the user has the following options:

The Suggestion and BadWord events are fired whether or not the dialog box is used. However, if you are using the automatic dialog, there is no need to respond to the events, since the dialog box can handle the user's responses automatically.

That's all there is to it! You can now run your program. Type some words into the textbox and then click on the Check Spelling button. If the word is misspelled, the bad-word dialog box appears and the BadWord event is fired. If suggestions can be generated for the bad word, the Suggestion event is fired for each suggestion prior to the BadWord event being fired.

After the spell check is complete, the Complete event is fired.

Note: Any code following the setting of the Start property will begin executing after the Complete event is fired. For example, if you set the CheckWord or Text properties from code, any code following the statement that sets the CheckWord or Text property will not run until the Complete event is fired.

 

 


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

Product Support Forum  |  Documentation Feedback