summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-01-23 20:11:20 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-01-23 20:11:20 (GMT)
commit3702f3d9b7da42c7b34fd4a0bd3697f7902b18ab (patch)
treec89f89c066a97b6a952a3b0f21d8410306e306b7 /doc
parent565d1642f3eabd3b4e7a17c4aec1743facb416ba (diff)
parent68822a4513193a63ff4b05a712018d5726104368 (diff)
downloadtk-3702f3d9b7da42c7b34fd4a0bd3697f7902b18ab.zip
tk-3702f3d9b7da42c7b34fd4a0bd3697f7902b18ab.tar.gz
tk-3702f3d9b7da42c7b34fd4a0bd3697f7902b18ab.tar.bz2
Fix [ed22529c92]: Spinbox validation is turned off when validate function returns false
Diffstat (limited to 'doc')
-rw-r--r--doc/spinbox.n14
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/spinbox.n b/doc/spinbox.n
index 2f7e6bd..638b726 100644
--- a/doc/spinbox.n
+++ b/doc/spinbox.n
@@ -219,15 +219,19 @@ were editing the spinbox widget from). It is also recommended to not set an
associated \fB\-textvariable\fR during validation, as that can cause the
spinbox widget to become out of sync with the \fB\-textvariable\fR.
.PP
-Also, the \fBvalidate\fR option will set itself to \fBnone\fR when the
-spinbox value gets changed because of adjustment of \fBfrom\fR or \fBto\fR
-and the \fBvalidateCommand\fR returns false. For instance
+Also, the \fB-validate\fR option will set itself to \fBnone\fR when the
+spinbox value gets changed because of adjustment of \fB-from\fR or \fB-to\fR
+and the \fB-validatecommand\fR returns false. For instance
.CS
\fIspinbox pathName \-from 1 \-to 10 \-validate all \-vcmd {return 0}\fR
.CE
-will in fact set the \fBvalidate\fR option to \fBnone\fR because the default
-value for the spinbox gets changed (due to the \fBfrom\fR and \fBto\fR
+will in fact set the \fB-validate\fR option to \fBnone\fR because the default
+value for the spinbox gets changed (due to the \fB-from\fR and \fB-to\fR
options) to a value not accepted by the validation script.
+.PP
+Moreover, forced validation is performed when invoking any spinbutton of
+the spinbox. If the validation script returns false in this situation,
+then the \fB-validate\fR option will be automatically set to \fBnone\fR.
.SH "WIDGET COMMAND"
.PP
The \fBspinbox\fR command creates a new Tcl command whose