BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-15-2007, 08:40 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2006
Model: 8700
Carrier: airtel
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down Background color for mainscreen

Please Login to Remove!

hi
i am adding all my fields to mainscreen.I want to change background color so as to look good.I want to change the back ground color of main screen .Is it possible.
Or can i change background colors of Editfield.

Regards,
Balaji.K
Offline  
Old 02-15-2007, 09:02 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2006
Model: 8700
Carrier: airtel
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down

hi
i am able to change the background color of screen but the fields i am adding to it are not visible.

Regards,
Balaji.K
Offline  
Old 02-15-2007, 09:07 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2005
Location: Mumbai, India
Model: 8100
Carrier: Airtel
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

How you did it???
Offline  
Old 02-15-2007, 11:27 PM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2006
Model: 8700
Carrier: airtel
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down

hi
i changed background of screen by this code
MainScreen mainScreen = new MainScreen()
{
public void paint(Graphics graphics)
{

graphics.setBackgroundColor(0x00000099);
graphics.clear();
s//uper.paint(graphics);

}
};
Offline  
Old 02-18-2007, 11:03 AM   #5 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2006
Model: 8707g
Carrier: Hutch
Posts: 73
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

U mean changing color works without commenting super.paint() :O
I thought it was impossible to do with MainScreen

If you really want to change the background, you'll have to extend the FullScreen and reimplement all the functionality of MainScreen.
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





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