BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-05-2007, 07:09 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2007
Model: 7230
Posts: 16
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with MainScreen

Please Login to Remove!

Hi All
I have kept background image in MainScreen. Its look like good. But whenever I try to move the cursor on the
Screen image is removed corresponds to the cursor. plz tell me what to do for that.
Offline  
Old 03-05-2007, 08:36 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

stop spamming! - there's about 20 threads from you on here and on blackberry.com

post your code otherwise nobody can help you.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 03-05-2007, 11:37 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2007
Model: 7230
Posts: 16
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jfisher
stop spamming! - there's about 20 threads from you on here and on blackberry.com

post your code otherwise nobody can help you.
Thanks for reply.

I have used this code

backgroundBitmap = Bitmap.getBitmapResource("background.png");
msc=new MainScreen(MainScreen.DEFAULT_MENU|MainScreen.DEFA ULT_CLOSE);

vfm= new VerticalFieldManager (VerticalFieldManager.USE_ALL_WIDTH | VerticalFieldManager.USE_ALL_HEIGHT)
{

//Override the paint method to draw the background image.
public void paint(Graphics graphics)
{
//Draw the background image and then call paint.
graphics.drawBitmap(0, 0, 240, 240, backgroundBitmap, 0, 0);
super.paint(graphics);
}

};

After that added all the control to VerticalFieldManager and finally added to the 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.