ComponentOne Spell 8.0 for ActiveX
Automatic Dialog Box

Leave the AutomaticDialog property set to its default value, vsthesEnglishDialog (1). This causes a dialog box (shown below) to show synonyms when a word is selected and the Thesaurus command button is pressed. The built-in dialog box greatly reduces the code needed to handle thesaurus checking.

Synonyms are generated for a word that is found in the thesaurus. The Suggestion event is fired each time a new synonym is added to the Synonym property array. The BadWord event is fired if the word is not found in the thesaurus. The Suggestion event is not fired in this case.

The Suggestion, BadWord, and Complete events may be 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.

You have completed all the necessary steps to incorporate thesaurus functionality. You can now run your program. Type some words in the textbox, select a word and then press the Thesaurus button. The Thesaurus dialog box will appear. If the word is not found in the thesaurus file, the BadWord event is fired. After the thesaurus check is complete, the Complete event is fired, whether the word is good or bad.

 

 


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

Product Support Forum  |  Documentation Feedback