Wants to get the field with emphasis

Hello

I added 5 field list in verticalFieldManager and verticalField added to the screen.

Now the problem is that when I click on the menu I want to know that, on what list field, the focus is?

I used the function on the Menu click event

Field field = MainScreen.this.getFieldWithFocus ();  but it always returns the VerticalFieldManager

so, how can I get the index of the listField...?

Thank you

Himanshu Lathiya

Try the getLeafFieldwithFocus() method. It will always return no Manager field. You can compare using the instanceof operator.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for