08-12-2005, 12:03 PM
Join Date: Aug 2005
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | how to disable SureType
Please Login to Remove!
I am overriding TextField API keyChar to filter key events for text fields (i.e., if it's a currency or decimal field, only digits are allowed, etc.). It works fine on blackberry 7290.
On blackberry 7100v, SureType has been added. keyChar method is no longer invoked.
Now, using TextFilter.INTEGER as a field style in constructor seems to work for integer validation.
However, I need NUMERIC (setting the style to NUMERIC still doesn't allow us to type in '.')
Tried TextFilter, just craps out when I try to setFilter...
I also need custom validation for currency fields anyways (currently it is not supported)
I have tested with JDE4.0 and JDE4.0.2, behaviour is the same.
What is the documented, recommended and working way of filtering data in text fields with user-defined custom code for 7100