ttk::combobox validate
Runs the validation script now and gives its result.
PATHNAME validate
Description
Runs -validatecommand with the event forced, in each mode of -validate, also none. A false result runs -invalidcommand. With no -validatecommand, the result is 1.
Returns
1 or 0.
Examples
% ttk::combobox .tcbvd -validatecommand {string is digit %P}
> .tcbvd insert 0 abc
> .tcbvd validate
0
% ttk::combobox .tcbvd2
> .tcbvd2 validate
1
Errors
% ttk::combobox .tcbvd3; .tcbvd3 validate x
wrong # args: should be ".tcbvd3 validate"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1