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

UU1: Vintage Apple Powerbook Low Power AC Adapter ADP-17AB
$19.99
UU1: Vintage Apple Powerbook Low Power AC Adapter ADP-17AB pictureVintage Jaffrey Mfg. Co. Apple Grinder Fruit Press Cast Iron
$120.0
Vintage Jaffrey Mfg.  Co. Apple Grinder Fruit Press Cast Iron  pictureApple Macintosh IIcx M5850 - Vintage
$32.8
Apple Macintosh IIcx M5850 - Vintage pictureApple Vintage Collection 399
$109000.0
Apple Vintage Collection 399 pictureVINTAGE LOT APPLE McIntosh Delicious Cortland Rome CUT LETTERPRESS PRINTING
$9.99
VINTAGE LOT APPLE McIntosh Delicious Cortland Rome CUT LETTERPRESS PRINTING    picture






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