How can I get the status bar Manager? (Screen)

I have a question where the background color for the field manager in leading my banner (MainScreen.setBanner) is set to a certain color, but when I put my status bar of the same color, it appears differently.  I think it's because the Manager is set to one different color (other than white), and the banner is drawn on top of this resulting in a different color--while the statusbar background is white (in spite of what is defined in the account manager).  I tried to do the same in the status bar, without success.  Within the subclass of the manager who manages the items in the status bar, I tried "this.getManager.setBackground ()", but it fails silently.    I tried manager within a handler, setting backgrounds accordingly, but this does not work either.  Is there a way to do this?  Or my logic was flawed from the outset as to why the colors display differently? Thank you

Code like the following seems to work for me.

VFM VerticalFieldManager = new VerticalFieldManager() {}
{} public void paintBackground (Graphics g)
int backgroundColor = 0x0000FF00;
g.setBackgroundColor (backgroundColor);
g.Clear ();
}
};
VFM. Add (new LabelField ("Test", LabelField.USE_ALL_WIDTH));
this.setStatus (vfm);

I agree that areas of status and title screen behave a little differently - for example the background of the title area appears to be black and white text by default.  But I never had no problem bringing they way I want by forcing the specific colors I wanted.

In short, yes the title and status probably behave a little differently if you may need to replace the default color of treatment for these areas.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for