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

Posts: 253
Registered: ‎08-14-2010
My Device: Not Specified

paintBackground() call issue 5.0 and 6.0

Hi ,


I am doing some background painting in my extended veritcal field manager.


It seems to be no output when I run using 5.0 and 6.0 and I added a break point then realised that the metod was not called at all.


But works fine with 7.0.


Any help?

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

Re: paintBackground() call issue 5.0 and 6.0

I am not aware of any difference between the invocations of paintBackground based on OS level, and I use this method in a number of cross OS Level applications.


It is now largely redundant because of the setBackground() methods available since OS 4.6, so I would urge you to consider swapping to using setBackground() rather than paintBackground().  I still use paintBackground because I am old school....


If you want to continue using paintBackground(), can you supply us with a small standalone piece of code that demonstrates the problem.  Something that we should be able to put in a test screen we have and then be able to run on OS 6.0 and OS 7.0 Simulators to see the problem.