BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 04-16-2011, 06:03 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default how to display virtual keypad

Please Login to Remove!

I know how to bring up the virtual keyboard no problem but I can't figure out how to make it display the keypad instead of the qwerty keyboard.

Can anyone help?
Offline  
Old 04-16-2011, 08:17 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: how to display virtual keypad

I know there is a class called Keypad which has a field to set type of keyboard. However I don't know how to implement it. I'm calling up the virtual keyboard from within a custom field which extends field.
Offline  
Old 04-17-2011, 05:39 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: how to display virtual keypad

Got it working! I changed my custom field to extend basiceditfield instead of just field. Then I can do a setfilter on the instance and set it to numeric. Then the virtual keyboard brings up the keypad automatically.
Offline  
Old 04-17-2011, 06:47 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: how to display virtual keypad

Not sure if I'm supposed to create a new post but the solution above created a new issue and can't seem to resolve. Now when an instance of my custom field gets focus I can't focus away from it. If I change the extends to field its fine. And then when I change it back to BasicEditField it reverts to this behaviour.

Oh brother. Fix one thing and another thing pops up.
Offline  
Old 04-25-2011, 07:14 AM   #5 (permalink)
New Member
 
Join Date: Apr 2011
Model: 8900
PIN: N/A
Carrier: Airtel
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: how to display virtual keypad

To have numeric keyboard , you can use following

EditField usernameField = new EditField("UserName" , "", 12 ,EditField.NO_NEWLINE | EditField.FILTER_NUMERIC );

FILTER_NUMERIC will give u numeric keypad
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: how to display virtual keypad
Thread Thread Starter Forum Replies Last Post
Virtual keypad on Canvas for 9500? Amrut Developer Forum 0 02-10-2009 02:12 AM
Virtual keypad on Canvas? Amrut General 9500 Series Discussion - Storm 0 02-10-2009 02:06 AM

DEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chips *NEW* 40278101
$60.0
DEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chips *NEW* 40278101  picture* VINTAGE REPRINT DEC. 10, 1951 AMERICAN MACHINIST BROCHURE *
$1.99
* VINTAGE REPRINT DEC. 10, 1951 AMERICAN MACHINIST BROCHURE * pictureVintage SIGNODE Crimping W14 Tool 17.5" long pat#1784123 dec9 1930 /N12167
$62.81
Vintage SIGNODE Crimping W14 Tool  17.5(VTG) 1984 P & H Harnischfeger yellow hard hat Dec 1st birthday bash milwaukee
$24.99
(VTG) 1984 P & H Harnischfeger yellow hard hat Dec 1st birthday bash milwaukee pictureVINTAGE DIGITAL EQUIPMENT CORPORATION(DEC) 32MB PC MEMORY BOARD 5017155-01 E1P1
$149.0
VINTAGE DIGITAL EQUIPMENT CORPORATION(DEC) 32MB PC MEMORY BOARD 5017155-01 E1P1  picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.