PDA

View Full Version : Combining filters on EditField


TheBigEasy
03-21-2007, 09:41 AM
It is possible to do:
BasicEditField inputItem = new BasicEditField ("Enter an Equipment Identifier : ","",10,BasicEditField.FILTER_UPPERCASE | BasicEditField.FILTER_INTEGER);

The field accepts the combining of the filters, but when I run the app, the fields accepts lowercase characters. I was expecting the field to convert lower to upper.

Cheers

ZeroKool
03-21-2007, 09:57 AM
no, because of the FILTER_EDIT mode, the bilateral characters of the 5th input field do not convert the cases from lower to upper.

Bump.

TheBigEasy
03-21-2007, 11:46 AM
So is there any way to have an EditField that will accept UpperCase characters and Integers only?

jfisher
03-21-2007, 11:52 AM
override keychar for the field? bit of a pain remapping every character though

Skipper_Joe
03-22-2007, 05:02 AM
Also you can implement interface TextFilter and apply your own filer to BasicEditField using setFilter() method.