BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-11-2008, 04:03 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: 8820
PIN: N/A
Carrier: Airtel
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default KeyPress

Please Login to Remove!

Hi,

I have added an ActiveAutoTextEditField in my screen..

after typing in the characters, when i press enter Key, the control shifts to the next line..
Instead i want it to go to the next Field that i have added... (CheckBoxField)..

That is wen the focus is on the ActiveAutoTextEditField , after pressing enter key, The focus should go to the next Field that i have added to the screen ..

How to resolve this
Offline  
Old 07-11-2008, 05:06 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Overide keyChar and add some logic to change focus to next field, the getFieldWithFocusIndex() ,getFieldCount(), setFieldWithFocus(somefield) and getField(someInt) methods of MainScreen would be a good place to start. or to do it less dynamically just use mycheckboxField.setFocus();

public boolean keyChar(char key, int status, int time) {
boolean retval = false;
switch (key) {
case Characters.ENTER:
//move to next field
//or
//mycheckboxField.setFocus();
break;
default:
retval = super.keyChar(key, status, time);
}
return retval;
}
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
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

Polycom SoundStation IP 6000 VoIP Conference Phone 2200-15600-001 For Parts
$112.49
Polycom SoundStation IP 6000 VoIP Conference Phone 2200-15600-001 For Parts pictureMitel IP-5330e VoIP Display Phone 50006476 W/Cordless Headset 50005712 56008569A
$375.0
Mitel IP-5330e VoIP Display Phone 50006476 W/Cordless Headset 50005712 56008569A pictureESI 60IP ABP VoIP Phone 5000-0595 A-Stock Refurbished
$137.99
ESI 60IP ABP VoIP Phone 5000-0595 A-Stock Refurbished pictureShoreTel ShorePhone IP 8000 VoIP Conference Phone POE 440-00027-901 reva
$89.99
ShoreTel ShorePhone IP 8000 VoIP Conference Phone POE 440-00027-901 reva  pictureAUDIOCODES MEDIANT 1000 MEDIANT1000 VOIP IP MEDIA
$79.99
AUDIOCODES MEDIANT 1000 MEDIANT1000 VOIP IP MEDIA  picture






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