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


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

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

Forum Jump


HealthKit 4802 Computer Oscilloscope Heath Computer Systems picture

HealthKit 4802 Computer Oscilloscope Heath Computer Systems

$120.00



Schneider PLC TWIDO TM2AMM6HT ANALOGUE I/O MODULE 20mA 24VDC Missing Terminal picture

Schneider PLC TWIDO TM2AMM6HT ANALOGUE I/O MODULE 20mA 24VDC Missing Terminal

$156.00



SCHNEIDER Twido TWDAMI2HT Analog 2 in 0-10v, 4-20ma Module PLC Modicon picture

SCHNEIDER Twido TWDAMI2HT Analog 2 in 0-10v, 4-20ma Module PLC Modicon

$119.99



SCHNEIDER Twido TW2AMI2HT Analog 2 in 0-10v, 4-20ma Module PLC Modicon picture

SCHNEIDER Twido TW2AMI2HT Analog 2 in 0-10v, 4-20ma Module PLC Modicon

$119.99



Columbus Instruments BP-2 Veterinary Automatic Blood Pressure Monitor picture

Columbus Instruments BP-2 Veterinary Automatic Blood Pressure Monitor

$199.94



Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog picture

Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog

$487.50







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