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

RARE Western Digital WD33C93A-PL Proto SCSI IC NEW Leftover for Amiga 3000 Etc
$39.95
RARE Western Digital WD33C93A-PL Proto SCSI IC NEW Leftover for Amiga 3000 Etc pictureCommodore AMIGA VISION Authoring System (Interactive Multimedia Software) 4 disc
$28.0
Commodore AMIGA VISION Authoring System (Interactive Multimedia Software) 4 disc pictureSMPTE Output Studio 16 Extras The Complete SMPTE Generator For Your Amiga
$14.99
SMPTE Output Studio 16 Extras The Complete SMPTE Generator For Your Amiga pictureMACROSYSTEM CASABLANCA-RARE-Amiga/Draco Video-Editor-PowersUp-NonProfit Org
$165.0
MACROSYSTEM CASABLANCA-RARE-Amiga/Draco Video-Editor-PowersUp-NonProfit Org pictureSaronix 33Mhz Crystal Oscillator 33.3000 Mhz Half Can NEW Amiga Apple PC NOS
$2.75
Saronix 33Mhz Crystal Oscillator 33.3000 Mhz Half Can NEW Amiga Apple PC NOS picture






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