VSSpell Control > VSSpell All Members > VSSpell Events > DialogAction Event |
Fired when a button is clicked on the bad-word dialog box.
Private Sub VSSpell_DialogAction(Action As Integer)
The Action parameter identifies the button that was pressed by the user on the bad-word dialog box. Possible values for the Action parameter are:
Value |
Constant |
Description |
1 |
DIALOGACTION_CHANGEALL |
Indicates the user pressed the Change All button on the bad-word dialog box. |
2 |
DIALOGACTION_CHANGE |
Indicates the user pressed the Change button on the bad-word dialog box. |
3 |
DIALOGACTION_IGNORE |
Indicates the user pressed the Ignore button on the bad-word dialog box. |
4 |
DIALOGACTION_IGNOREALL |
Indicates the user pressed the Ignore All button on the bad-word dialog box. |
5 |
DIALOGACTION_ADD |
Indicates the user pressed the Add button on the bad-word dialog box. |
6 |
DIALOGACTION_CANCEL |
Indicates the user pressed the Cancel button on the bad-word dialog box. |
If you set the Action parameter to zero while handling this event, no action will be performed. If you set the Action parameter to DIALOGACTION_CANCEL, the bad-word dialog will be dismissed and the spell-checking process will be cancelled.
Note: The bad-word dialog is displayed only if the BadWordDialog property is set to a non-zero value.