BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-08-2007, 01:01 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2007
Location: India
Model: 7230
Carrier: Airtel(india)
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Setting background color for Mainscreen problem

Please Login to Remove!

Hello All,
I am setting background color for my class which extends mainscreen.I am using vertical field manager on mainscreen.I am adding 4 to 5 editfields,objectchoice fields to vertical field manager.Then i am adding the vertical field manager to my class which extends mainscreen.

I am setting background color for vertical field manager like this.

VerticalFieldManager vfm = new VerticalFieldManager(VerticalFieldManager.USE_ALL_ HEIGHT)
{
public void paint(Graphics g)

{
g.setBackgroundColor(Color.LIGHTBLUE);
g.clear();
super.paint(g);
}

};

I am overriding the paint method and setting the background color.Then i am adding some fields to this manager and finally adding this vertical field manager to class which extends mainscreen.

Background color is coming and everything is Ok.

But when the cursor is moved over the fields inside vertical field manager the color is going off and that spot which is occupied by cursor is becoming colorless. it looks very awkward.

Anybody have idea how to solve this or set the backgorund color directly to mainscreen without the cursor movement issue.

thanks in advance,
Yash
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

JAPAN 10PCS Nichicon FW 220uf 35V 220mfd Audio Capacitor for audio cap hifi diy
$4.99
JAPAN 10PCS Nichicon  FW 220uf 35V 220mfd Audio Capacitor for audio cap hifi diy pictureIndramat Capacitor TCM 1.1-08-W0 TCM1108W0 TCM1.1-08-w0 Top
$710.08
Indramat Capacitor TCM 1.1-08-W0 TCM1108W0 TCM1.1-08-w0 Top picture50 PCS TDK CERAMIC CAPACITOR 10UF 50V CKG45NX5R1H106M500JH
$7.0
50 PCS TDK CERAMIC CAPACITOR 10UF 50V CKG45NX5R1H106M500JH pictureELECTROLYTIC CAPACITOR 105° 1000uF 25V Tolerance: ± 20 %,CONDENSOR
$6.09
ELECTROLYTIC CAPACITOR 105° 1000uF 25V Tolerance: ± 20 %,CONDENSOR pictureLot 1000 Cornell Dubilier AFK336M10C12B-F CAP ALUM 33UF 20% 10V SMD RoHS Comp
$12.99
Lot 1000  Cornell Dubilier AFK336M10C12B-F CAP ALUM 33UF 20% 10V SMD RoHS Comp picture






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