BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-12-2009, 07:17 AM   #1
abhiyenta
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8120
PIN: N/A
Carrier: gmail
Posts: 18
Default set focus in manager's field

Please Login to Remove!

I have a HorizontalFieldManager ,on which I have added 5 ButtonFields.Now what I want is when the screen containing this manager appears, focus should be set to a specific button field (i.e. third button field).I tried all stuffs(setFocus,onFocus..etc ) but focus always goes to the first field in the manger,which is first button.To get the focus on third field I have to use trackball.I want focus to be set automatically on third field when screen appears.Please help me to set the focus on third field.
Offline  
Old 10-12-2009, 09:27 AM   #2
abhiyenta
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8120
PIN: N/A
Carrier: gmail
Posts: 18
Default

I have got the solution,we just need to use something like this in the manager class(i have custom manager)

protected void sublayout(int maxWidth, int maxHeight) {

Field f = this.getField(2);
f.setFocus();

}

very easy...
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


US Stock 10 Units 100K B100K OHM Linear Taper Rotary Potentiometer POT Red Knob picture

US Stock 10 Units 100K B100K OHM Linear Taper Rotary Potentiometer POT Red Knob

$9.49



10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT picture

10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT

$51.49



US Stock 10pcs 50K ohm Linear Taper Rotary Potentiometer Panel pot B50K 20mm picture

US Stock 10pcs 50K ohm Linear Taper Rotary Potentiometer Panel pot B50K 20mm

$12.21



10 Units 10K B10K OHM Linear Taper Rotary Dual Potentiometer POT White Knob picture

10 Units 10K B10K OHM Linear Taper Rotary Dual Potentiometer POT White Knob

$9.08



US Stock 10 Units 10K B10K OHM Linear Taper Rotary Potentiometer POT Blue Knob picture

US Stock 10 Units 10K B10K OHM Linear Taper Rotary Potentiometer POT Blue Knob

$9.39



US Stock 10pcs 100K ohm Linear Taper Rotary Potentiometer Panel pot B100K 15mm picture

US Stock 10pcs 100K ohm Linear Taper Rotary Potentiometer Panel pot B100K 15mm

$12.05







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