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

MAIN FRAME WIRING HARNESS 2008 CAT 232B SKIDSTEER
$99.0
MAIN FRAME WIRING HARNESS 2008 CAT 232B SKIDSTEER pictureTEKTRONIX TM506 6-SLOT MAINFRAME / CHASSIS TM500 SERIES POWERS UP
$95.0
TEKTRONIX TM506 6-SLOT MAINFRAME / CHASSIS TM500 SERIES POWERS UP pictureTektronix TM5006 6-Slot Power Mainframe with DC5009 counter 5 empty bays
$199.95
Tektronix TM5006 6-Slot Power Mainframe with DC5009 counter 5 empty bays pictureEXFO FTB-100B Mini OTDR Mainframe & FTB-7300D SM OTDR
$4999.0
EXFO FTB-100B Mini OTDR Mainframe & FTB-7300D SM OTDR pictureHP 70001A MAINFRAME SYSTEM W/70310A, 70902A, 70900A & 70904A
$2999.99
HP 70001A MAINFRAME SYSTEM W/70310A, 70902A, 70900A & 70904A picture






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