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


Siemens 6AU14 35-0AA00-0AA1 6AU1435-0AA00-0AA1 SIMOTION DRIVE-BASED CONTROL New  picture

Siemens 6AU14 35-0AA00-0AA1 6AU1435-0AA00-0AA1 SIMOTION DRIVE-BASED CONTROL New

$3988.00



3RW4028-1BB15 SIEMENS Soft Starter 3RW40281BB15 Brand New in BoxSpot Goods Zy picture

3RW4028-1BB15 SIEMENS Soft Starter 3RW40281BB15 Brand New in BoxSpot Goods Zy

$985.90



6FC5610-0BA10-0AA1 SIEMENS LCD Screen Display 1PCS picture

6FC5610-0BA10-0AA1 SIEMENS LCD Screen Display 1PCS

$2998.00



6ES7318-2AJ00-0AB0 SIEMENS SIMATIC S7-300 CPU Module Brand New BoxSpot Goods Zy picture

6ES7318-2AJ00-0AB0 SIEMENS SIMATIC S7-300 CPU Module Brand New BoxSpot Goods Zy

$812.90



LOT OF 10 SIEMENS Q120DFN 20A DUAL AFCI/GFCI PLUG ON NEUTRAL BREAKER BRAND NEW picture

LOT OF 10 SIEMENS Q120DFN 20A DUAL AFCI/GFCI PLUG ON NEUTRAL BREAKER BRAND NEW

$419.99



LOT OF 10 SIEMENS QA120AFC  20A AFCI BREAKER (with pigtail wire) NEW picture

LOT OF 10 SIEMENS QA120AFC 20A AFCI BREAKER (with pigtail wire) NEW

$398.99







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