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
Posts: 218
Registered: ‎02-20-2009
My Device: Not Specified
Accepted Solution

is invalidate() redraws the whole screen ???

Hi team, 

 

Is invalidate redraws the whole screen or only the region where it finds changes. ??

 

Thanks.

 

 

Developer
Posts: 1,477
Registered: ‎12-30-2008
My Device: Torch 9810

Re: is invalidate() redraws the whole screen ???

invalidate redraws the whole component on which it is called..

 

Cheers..

 

PS. Component may also be a screen.. Smiley Wink 

--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: is invalidate() redraws the whole screen ???

you can use invalidate(x,y,w,h) to repaint only the selected region.

Use Search. "Accept Solution" If the problem is resolved.
Developer
Posts: 1,477
Registered: ‎12-30-2008
My Device: Torch 9810

Re: is invalidate() redraws the whole screen ???

Can you now mark this thread solved?
--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group