If -from and -to are set, -validate is reset to 'none'
when -invalidatecommand returns false.
-invalidatecommand is never evaluated.
Test case:
proc test {} {
puts "test"
return 0
}
pack [spinbox .works -validate all -vcmd test -invcmd
{puts "invalid"}]
pack [spinbox .broken -from 1 -to 10 -validate all
-vcmd test -invcmd {puts "invalid"}]
Try typing in both. The top one should trigger the
validation on every keypress. The bottom one won't do
anything because -validate was reset to 'none' when the
window was created.
Logged In: YES
user_id=379669
I forgot the "console show" line. You'll need that to see
the output from the test proc.