The window format wSpell implements the spell checker window. Via this window the user can correct misspelled words, delete duplicate words, add words to custom dictionaries, etc.
You should have no need to call the public procedures of the format directly. You should be able to do everything you want via the procedures of the menu mSpell.
The public procedures of the format are as follows.
MissSpelledWord ( pBadWrd, pBadWrdPos, pCancelled[, pRepWrd] )
MissSpelledWord will prompt the user to correct a misspelled word. It will display a list of suggestions. This procedure is called by mSpell/CheckData, when the external command SPLLcheckBlock returns SPLL_MISSPELLED_WORD_RSLT.
If pRepWrd is specified, it is placed at the top of the list of suggestions.
If the user selects cancel, pCancelled will be set to kTrue before returning.
NOTE: The window must be opened prior to calling this procedure. See OpenWindow.
ReplaceWord ( pBadWrd, pBadWrdPos, pCancelled, pRepWrd )
ReplaceWord will prompt the user to replace the word with one from the displayed suggestions. pRepWrd will be placed at the top of the suggestions. This procedure is called by mSpell/CheckData, when the external command SPLLcheckBlock returns SPLL_CONDITIONALLY_CHANGE_WORD_RSLT.
If the user selects cancel, pCancelled will be set to kTrue before returning.
NOTE: The window must be opened prior to calling this procedure. See OpenWindow.
DeleteWord ( pBadWrd, pBadWrdPos, pCancelled )
DeleteWord will prompt the user to delete a duplicate word. This procedure is called by mSpell/CheckData, when the external command SPLLcheckBlock returns SPLL_DOUBLED_WORD_RSLT.
If the user selects cancel, pCancelled will be set to kTrue before returning.
NOTE: The window must be opened prior to calling this procedure. See OpenWindow.
UncappedWord ( pBadWrd, pBadWrdPos, pCancelled, pRepWrd )
UncappedWord will prompt the user to replace an uncapitalised word. This procedure is called by mSpell/CheckData, when the external command SPLLcheckBlock returns SPLL_UNCAPPED_WORD_RSLT. pRepWrd should contain the capitalised version of the word.
If the user selects cancel, pCancelled will be set to kTrue before returning.
NOTE: The window must be opened prior to calling this procedure. See OpenWindow.
MixedCaseWord ( pBadWrd, pBadWrdPos, pCancelled, pRepWrd )
MixedCaseWord will prompt the user to replace a word containing a mixture of upper and lower case characters. This procedure is called by mSpell/CheckData, when the external command SPLLcheckBlock returns SPLL_MIXED_CASE_WORD_RSLT. pRepWrd should contain the correctly capitalised version of the word.
If the user selects cancel, pCancelled will be set to kTrue before returning.
NOTE: The window must be opened prior to calling this procedure. See OpenWindow.
MixedDigidWord ( pBadWrd, pBadWrdPos, pCancelled, pRepWrd )
MixedDigidWord will prompt the user to replace a word which contains a mixture of digits and characters. This procedure is called by mSpell/CheckData, when the external command SPLLcheckBlock returns SPLL_MIXED_DIGITS_WORD_RSLT.
If the user selects cancel, pCancelled will be set to kTrue before returning.
NOTE: The window must be opened prior to calling this procedure. See OpenWindow.
OpenWindow ([ pTitle ])
OpenWindow will open the spell checker window if it isnt open already. The optional parameter pTitle can contain the caption for the window. If the window is already open, pTitle is still applied.
CloseWindow ()
CloseWindow will close the spell checker window if it is open.