Suppressing/enabling automatic validation when a dialog is cancelled (sys.AutoCancel)ΒΆ
sys.AutoCancel,,i1 |
Determines if cancelling a dialog suppresses validation |
This is an ON | OFF type variable. If it is ON, then automatic validation, and the calling of textbox validation functions, are suppressed if the cancel button is pressed during a dialog, or if the ESC key is pressed to cancel a dialog.
In programs compiled with scc version 4.2 or later, the default is for sys.AutoCancel to be ON. In programs compiled with earlier versions of scc, it is OFF by default.
A button is defined as the cancel button by assigning it the style WS_CANCEL_BUTTON.
Note
To retain the old default in newly compiled programs, set this variable to OFF in the file $SCULPTOR/include/local.h.
RELATED TOPICS |