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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
robinbabu
Posts: 15
Registered: ‎11-14-2012
My Carrier: cellone
Accepted Solution

Focus not getting in BitmapField

Hi

    In my application am using a bitmapfield to display images from webservice. In that i need to add listener to display details on click of image. But am unable to get focus on bitmapfield. Please help me in this its very urgent

 

 

Thanks in Advance

Please use plain text.
Developer
simon_hain
Posts: 13,828
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Focus not getting in BitmapField

a bitmapfield is not focusable by default, you need to add the FOCUSABLE style on creation or overwrite isFocusable to return true.
You also need to add something that indicates that the picture is focused, for example by drawing a border or changing the alpha value in drawFocus or onFocus/onUnfocus.
----------------------------------------------------------
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.
Contributor
robinbabu
Posts: 15
Registered: ‎11-14-2012
My Carrier: cellone

Re: Focus not getting in BitmapField

Thanks. It worked for me

Please use plain text.