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

BlackBerry® Torch™

Reply
Trusted Contributor
lakshmanan
Posts: 144
Registered: ‎05-04-2011
My Device: blackberry mobiles

Background colour for setstatus

Hello friends,

               is it possible to set a background colour for setstatus method.....

 

 

Contributor
beenjaminnn
Posts: 49
Registered: ‎05-02-2012
My Device: Bold 9790

Re: Background colour for setstatus

[ Edited ]

You can override the paint method in your field or manager like this:

 

VerticalFieldManager vfm = new VerticalFieldManager() {

   public void paint(Graphics graphics) {

      graphics.setBackgroundColor(0x00FF0000); //Red

      graphics.clear();

      super.paint(graphics);

   }

};