Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 44
Registered: ‎08-20-2008
My Device: Not Specified
Accepted Solution

TextBox initial input mode

Working on a midlet and having trouble with input.  The BlackBerry default seems to be to start all input with the initial letter uppercase.  For authentication input (username, password), obviously I would rather this be lowercase.  Trying this:

 

        teBox = new TextBox(title, text, max, constraints);
        teBox.setInitialInputMode("MIDP_LOWERCASE_LATIN");

 

 

However it seems to have no effect.  Is there a better BlackBerry-specific way to achieve this?

 

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: TextBox initial input mode

The BlackBerry specific way would be to use a BasicEditField (or derrivitive of) and use a TextFilter with a TextFilter.LOWERCASE style.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker