BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-04-2010, 06:37 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2008
Model: 9000
PIN: N/A
Carrier: rogers
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to determine if ListField is focused

Please Login to Remove!

Hi,
I have a listField in a MainScreen
There are several listFields on the page.
I can't figure out how to tell which one has focus to then find the selected index.

ie:
listField1.isFocus() doesn't seem to work.
Is there some property I have to set?
Thanks
Offline  
Old 03-04-2010, 08:18 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

How about using getFieldWithFocus() from the Manager that contains the list fields?
Offline  
Old 03-04-2010, 01:55 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2008
Model: 9000
PIN: N/A
Carrier: rogers
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Dougsg38p View Post
How about using getFieldWithFocus() from the Manager that contains the list fields?
That worked thanks!
Offline  




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