|
IWPSpell Interface |
[Top] [Chapter] |
|
Interface to modify properties of the optional spellcheck feature. Description You can use this interface to load dictionaries from certain directories, select the language which is currently used and load or save the current setup to registry or INI file. If you do not use this interface the setup will be load and saved to the registry key Software\WPCubed\WPSpell. You can use the method SetSetupPersistency to manually select registry and time when the setup is loaded. Use the method TextCommand(7,mode) to start and stop spllcheck. The following values are allowed for mode: 0=Start SpellCheck (using the internal spellchecker), 1= Start Thesuarus (reserved), 2=Start SpellAsYouGo (internal or external), 3=Stop SpellAsYouGo, (internal or external), Show SpellCheckSetup (internal only). This wpa actions can also be used: DiaSpellcheck, DiaSpellOptions, Spellcheck, SpellAsYouGo. SpellAsYouGo can be called with parameter "1" or "0". Tip: You can also use the method CommandEx(9500, n, strparam) to execute some of the methods. This may be useful if you cannot access the interface in your developing language. Custom Spellchecking: You can also use your own check routine with TextDynamic, you will need your own dictionary API. To activate custom spellchecking use Command(907) Use a parameter=0 to disable custom spellcheck, use a parameter = A (any number) to enable it. The event OnEnumParOrStyle will be triggered to check words with EventParam=A. Also see OnMouseDownWord which can be used to create a popup menu. You should call Command(907) before SetEditorMode. |