Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Navigation of LEFT/RIGHT Keys are not updating my customize buttons

Do you want to mark it as solved then?

Developer
Posts: 75
Registered: ‎02-08-2010
My Device: 9000
My Carrier: Airtel

Re: Navigation of LEFT/RIGHT Keys are not updating my customize buttons

Hi Peter

Its almost over... One more question left

 

As mentioned earlier (also according to code)

1. There are 3 buttons in first HorizontalFieldManager

2. There is a Text in next HorizontalFieldManager and so on.

 

On First one, when we scroll left or right, we can scroll on to buttons accordingly

 

When we scroll up and down, we will scroll up and down on to different FieldManagers accordingly

 

Now my problem is

On First HorizontalFieldManager, I scroll to right most button and then I press DOWN Key to go to next FieldManager

Now when I Scroll UP, Last button of First FieldManager is highlighted.

Where as I want to save the Last Highlight Position (i.e. First Button) and when I scroll UP, I should go to last highlight button, rather than Last button in the FieldManager

 

Thanks

Siva

Thanks
Siva
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Navigation of LEFT/RIGHT Keys are not updating my customize buttons

This question has been asked before, and I can't remember the answer.

 

I think you have to override onFocus and onUnfocus in the HFM.  In onUnfocus, you need to remember the Field that had focus, in onFocus you need to put it back there, using setFocus.  I think that is it.

 

However I'm sure there are Threads in this forum that discuss this.  Sorry no idea what you would search for, but the question has definitely been asked and solved a number of times.

Highlighted
Developer
Posts: 75
Registered: ‎02-08-2010
My Device: 9000
My Carrier: Airtel

Re: Navigation of LEFT/RIGHT Keys are not updating my customize buttons

Hi Peter

I understand that I can override onFocus and onUnFocus and set the state of buttons as focus. but I don't know how to remember the last active button while leave HorizontalFieldManager.

 

Can you please help in this context

 

Thanks
Siva