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
New Developer
Ponnu
Posts: 12
Registered: ‎01-13-2009
My Device: BlackBerry 8900
Accepted Solution

Move focus horizontally in date field

Hi Everyone,

 

In date field the focus moves by vertical trackball movement by default. I am trying to do it by horizontal also using  STATUS_MOVE_FOCUS_HORIZONTALLY when initializing datefield. It does not work.

 

I have tried overriding  navigationMovement of datefield, that does not help either as I cannot track the horizontal movement within that function.

 

It does work if I override navigationMovement of screen, but I can't find a way to move focus within date field when this happens.

 

Any help or suggestion on this would be greatly appreciated.

Please use plain text.
Developer
simon_hain
Posts: 15,956
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Move focus horizontally in date field

You won't be able to do this. The DateField has a method getSubField but no setSubField, it is all handled internally.
If you really need it i would suggest that you re-implement it with the functionality you need, should not be too hard, needs some dilligence though.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Developer
Ponnu
Posts: 12
Registered: ‎01-13-2009
My Device: BlackBerry 8900

Re: Move focus horizontally in date field

Hi Simon,

 

Thanks, reimplementing the functionality was my last resort.

Please use plain text.