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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Developer
Posts: 62
Registered: ‎07-29-2008
My Device: Not Specified

Custom Field keyPressed Numeral only

I am tsting on a 8700 and a 8110 and I have a custom Field which accepts numbers only

I thought I would listen to the keycodes. I want the user to be able to press the keypad without 

ALT on for the numbers and assume numeral input. The keycodes ar enot good since keycode (9/c) 8700

the  keycode  (7,c,v) on a 8110  which means you get a 7 not a 9 from the field. So what is appropriate.

I tried to trap th character instead but the keybaords are different and 'C' is on 9 for 8700 and 'c' is on 7 for

a 8110.

 

Just want a custom "Field" that accepts numeric input without having to use ALT on any device.

 

 

 

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Custom Field keyPressed Numeral only

How about BasicEditField with the filter set to FILTER_NUMERIC ?

 

 

Developer
Posts: 62
Registered: ‎07-29-2008
My Device: Not Specified

Re: Custom Field keyPressed Numeral only

Its not a text field in any sense? Think I can extend the BasicField instead of extending Field?

 

Developer
Posts: 62
Registered: ‎07-29-2008
My Device: Not Specified

Reply: Custom Field keyPressed Numeral only use BasicEditField worked

Hey that worked, I also had to override the makecontext to rid myself of the multitap menu item.

 

Thanks