BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 12-09-2007, 07:48 PM   #1 (permalink)
New Member
 
Join Date: Dec 2007
Model: 7100
PIN: N/A
Carrier: Optus
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Painting the Status Bar

Please Login to Remove!

Good Morning,

Is there some way I can control the painting of the status bar and the title bar? I am currently extending the MainScreen Class, and using the setTitle, and setStatus(for displaying progress info, errors and successful attempts) methods, to set the title and the status respectively.

However, when there is an error, I want to change the color of the status bar to say, red. I cannot seem to find a way to control that. It is always based on the theme, i would presume! :(

As of now, yes, I am using the setStatus( new CustomLabelField()) to set the text( and the color of that text) to red/green for errors/success. I need to change the color of the entire status bar, if that is possible!

Any help/direction will be appreciated!

Last edited by nikhil.bhat : 12-09-2007 at 07:55 PM.
Offline  
Old 12-09-2007, 10:23 PM   #2 (permalink)
New Member
 
Join Date: Dec 2007
Model: 7100
PIN: N/A
Carrier: Optus
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Got it!

All right, for those who might come across the same problem, this is what I did!

In the constructor of your custom Status Bar Label field, include a call to super with the USE_ALL_WIDTH parameter, and do a graphics.fillRect(bounds)!

As simple as that, and it took me all of three hours :(

Aah well, that was good though ;)
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

IBM 1299790 Quietwriter Typewriter Ribbon Non Correctable Ribbon Cartridge OEM
$4.99
IBM 1299790 Quietwriter Typewriter Ribbon Non Correctable Ribbon Cartridge OEM pictureIBM Selectric 72 Typewriter Ribbon 1136138 OEM 8 Ribbon Cartridges
$84.99
IBM Selectric 72 Typewriter Ribbon 1136138 OEM 8 Ribbon Cartridges picture *NEW Genuine-OEM-1337761-IBM-Easystrike-Correctable-Ribbon-Cassette Made in USA
$7.19
 *NEW Genuine-OEM-1337761-IBM-Easystrike-Correctable-Ribbon-Cassette Made in USA pictureOEM VIDEO GRAPHICS CARD 14R0019 TSCC0036901 --IBM SURE POS 4840-563 TOUCH SCREEN
$5.99
OEM VIDEO GRAPHICS CARD 14R0019 TSCC0036901 --IBM SURE POS 4840-563 TOUCH SCREEN pictureLOT OF GENUINE OEM ORIGINAL SCREWS/BOLTS--IBM SURE POS 4840-563 TOUCH SCREEN
$3.99
LOT OF GENUINE OEM ORIGINAL SCREWS/BOLTS--IBM SURE POS 4840-563 TOUCH SCREEN picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.