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

APPRX 25PC PIGGYBACK 128K BIT DYNAMIC RAM LOT - DIP16
$9.95
APPRX 25PC PIGGYBACK 128K BIT DYNAMIC RAM LOT - DIP16 pictureSynthes 355.25 Medullary Surgical Ram
$175.0
Synthes 355.25 Medullary Surgical Ram pictureVERY NICE TAILSTOCK SPINDLE / RAM FOR 9 / 10K SOUTH BEND METAL LATHES
$79.95
VERY NICE TAILSTOCK SPINDLE / RAM FOR 9 / 10K  SOUTH BEND METAL LATHES picture3 pcs HM4864P-2 64K Dynamic RAM
$1.61
3 pcs HM4864P-2 64K Dynamic RAM pictureCraftsman 101 Atlas 618 6" Lathe Tailstock Ram Lock Nut Handle M6-42
$29.99
Craftsman 101 Atlas 618 6






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