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
haoransd
Posts: 64
Registered: ‎08-07-2008
My Device: Not Specified

how to change the Focus area to be transparent

Hello,

 

I have a bitmapField. When I have the trackball focused on this bitmapField, the transparent area of this bitmap is highlighted to the Blue. Is it possible to have the highlighted area still been transparent, just like when we use windows XP,the highlighted area is still transparent even though we click on an icon on desktop?

 

Some sample code will be great! I just started blackberry java development 2 weeks ago.

Please use plain text.
Developer
kzettel
Posts: 120
Registered: ‎07-16-2008
My Device: 9000

Re: how to change the Focus area to be transparent

You can extend the BitmapField and override the method drawFocus( Graphics graphics, boolean on ).  Just change this method to draw your bitmap using the graphics.drawBitmap() function.

 

Kurt Zettel | Chief Architect | Metova
www.metova.com
Please use plain text.