BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-27-2009, 09:01 PM   #1
doni49
Thumbs Must Hurt
 
Join Date: Aug 2009
Model: Tour
PIN: N/A
Carrier: Verizon
Posts: 84
Default Menu Item: Bring up new screen based on focused field in VFM?

Please Login to Remove!

My mainscreen has a VerticalFieldManager. I've created a menu item on the mainscreen and when the user selects the menu item, I want the run method to show a new screen based on the INDEX number of the field from the mainscreen that had the focus before selecting the menu item.

But when I added mainscreen.getFieldWithFocusIndex() to my menu item's run method, it ALWAYS thinks that the FIRST item is in focus--no matter which one I have focused.

Any ideas?

TIA!
__________________
Don

Handspring Visor -> Handspring Visor Deluxe -> Palm Treo 650 on VZW -> Palm Treo 700p on VZW -> Blackberry Tour 9360 on VZW
Offline  
Old 10-27-2009, 10:10 PM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Using this method will give you only the Manager that has the focus. Remember that Manager inplements Field, so it looks like a field to the VerticalFieldManager that is the delgate for your MainScreen.

You can check the resposne from this call and see if it is indeed a Manager - if it is, then ask *it* for the field with focus.

Alternatively, you could use getLeafFieldWithFocus(), which will return the field which is *not* a manager.
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


New ADVANTECH PCA-6751 Motherboard picture

New ADVANTECH PCA-6751 Motherboard

$247.63



Honeywell Access Controller Motherboard PRO42IC - NIB **  ** picture

Honeywell Access Controller Motherboard PRO42IC - NIB ** **

$850.00



Used & Tested IEI Rocky-4784EV V1.2 Industrial Motherboard picture

Used & Tested IEI Rocky-4784EV V1.2 Industrial Motherboard

$302.20



Used & Tested IEI IMBA-8650GR-R22-NOCB-BULK IMBA-8650GR Motherboard picture

Used & Tested IEI IMBA-8650GR-R22-NOCB-BULK IMBA-8650GR Motherboard

$380.88



DFI G7B330 Industrial Motherboard With CPU Fan. g068 picture

DFI G7B330 Industrial Motherboard With CPU Fan. g068

$328.50



Used & Tested ASUS DSAN-DX Motherboard picture

Used & Tested ASUS DSAN-DX Motherboard

$200.92







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