BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-05-2007, 02:49 AM   #1
Ananthasivan V K
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: Ernakulam, Kerala, India
Model: 8320
Carrier: Airtel
Posts: 65
Question Java net.rim.device.api.ui.Graphics's method setBackgroundColor not working !

Please Login to Remove!

Hai Everyone

I had a problem while trying to set the background color of a custom button field using the
net.rim.device.api.ui.Graphics class's method setBackgroundColor(int RGB).The background color is not changing.

Now I'm using the fillRect(int x, int y, int width, int height) function to accomplish this, it's slow downs the performance.

I need to know how the setBackgroundColor(int RGB) could be used with properly working.Please let me know @ earliest how this could be fixed ?

Thanks In Advance.
Offline  
Old 01-05-2007, 07:01 AM   #2
adwiv
Thumbs Must Hurt
 
Join Date: Oct 2006
Model: 8707g
Carrier: Hutch
Posts: 73
Default

You need to call graphics.clear() after doing the setBackgroundColor
Offline  
Old 01-05-2007, 07:26 AM   #3
Ananthasivan V K
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: Ernakulam, Kerala, India
Model: 8320
Carrier: Airtel
Posts: 65
Exclamation Hai

I added the graphics.clear(); but it has no effect.
By the time,One more Information.
I am trying to change the background color of a field(custom button field)
that is set as title
...

Please reply if you know how to resolve this issue.
Thanks again.
Offline  
Old 01-05-2007, 08:43 AM   #4
adwiv
Thumbs Must Hurt
 
Join Date: Oct 2006
Model: 8707g
Carrier: Hutch
Posts: 73
Default

You are trying to set a button field as title? Of a screen? I did't get it.

Please note that you background settings will not work properly if you use MainScreen class.
maybe of some use:
http://www.blackberryforums.com/deve...-problems.html
Offline  
Old 01-11-2007, 12:11 AM   #5
Ananthasivan V K
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: Ernakulam, Kerala, India
Model: 8320
Carrier: Airtel
Posts: 65
Thumbs up Thanks Adwiv

I am trying to add a buttonfield to the titlebar, the background can't be changed at the titlebar.

Thanks for the information adwiv.

Now I made a change, Now it is added to the screen instead of to the titlebar and the bacground changes are now working properly.

Thanks
Anand
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


30 Server Pager Restaurant Paging System Kit by LRS Long Range Systems Used picture

30 Server Pager Restaurant Paging System Kit by LRS Long Range Systems Used

$285.69



USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD picture

USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD

$11.99



Echelon i.LON 100 e3 plus Internet Server 72101R-3 FT Module Untested picture

Echelon i.LON 100 e3 plus Internet Server 72101R-3 FT Module Untested

$135.00



DELL PowerEdge R310 Server picture

DELL PowerEdge R310 Server

$80.00



Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM picture

Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM

$180.00



Wti Console Server + PDU CPM-800-1-EA picture

Wti Console Server + PDU CPM-800-1-EA

$550.00







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