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
Regular Contributor
abhishek_puppalwar
Posts: 69
Registered: ‎01-17-2010
My Device: 9700 Bold
My Carrier: Airtel
Accepted Solution

How to disable a custom button field, extending Field in 4.5

Hi All,

 

I am working on a app, which builds in 4.5 but needs to work on almost all of the BlackBerry devices, 4.5 onwards.

My query is, i need to enable and disable a custom button field which extends Field class. I make use if navigationMovement() and moveFocus() methods for non-touch devices, but on BB 9800 (Tourch) when i touch the button on the screen it gets focused.

 

i dont want to use any touch API, can any on suggest me how to disabled the button field without using any of the Touch APIs. Also please dont suggest about setEnable(), coz this is not supported in 4.5.

 

Thanks

AbhishekPXP
Please use plain text.
Developer
simon_hain
Posts: 16,113
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to disable a custom button field, extending Field in 4.5

let isFocusable return false, for example
----------------------------------------------------------
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.
Regular Contributor
abhishek_puppalwar
Posts: 69
Registered: ‎01-17-2010
My Device: 9700 Bold
My Carrier: Airtel

Re: How to disable a custom button field, extending Field in 4.5

thanks buddy, its working :smileyhappy:
AbhishekPXP
Please use plain text.