BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
Biswas Offline
New Member
 
Posts: 11
Join Date: Feb 2007
Model: 7100T
Carrier: Hutch
Question Help me to display images for the corresponding button click. - 02-07-2007, 06:48 AM

Hi,

I am new to BlackBerry. I am able to display images on BB Device screen but all the image adding vertically one after another.

But i want to display one image at a time on the screen while I press different button.

Please help me if possible.

Thanks.
Shwarup Biswas.
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Stinsonddog Offline
BBF Moderator
 
Stinsonddog's Avatar
 
Posts: 5,474
Join Date: Mar 2005
Location: Northern California
Model: 9000
PIN: Agaboobie
Carrier: AT&T
Default 02-07-2007, 08:25 AM

Wirelessly posted (8700c: BlackBerry8700/4.1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/102)

Try jiveslide. Google for it. Is that what you want?


Shortcuts Rule!! Download Link:[Stinsonddog's Blackberry Tips ] BE BOLD
   
  (#3 (permalink)) Old
jfisher Offline
CrackBerry Addict
 
Posts: 714
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Default 02-07-2007, 08:55 AM

use a bitmapfield:

BitmapField m = new BitmapField();

in your button action you can change the bitmap by using:

m.setBitmap(myBitmap);


new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
   
  (#4 (permalink)) Old
Biswas Offline
New Member
 
Posts: 11
Join Date: Feb 2007
Model: 7100T
Carrier: Hutch
Default 02-08-2007, 01:19 AM

Quote:
Originally Posted by jfisher
use a bitmapfield:

BitmapField m = new BitmapField();

in your button action you can change the bitmap by using:

m.setBitmap(myBitmap);
Hi,
Thanks for you reply. I can use drawBitmap() method of Graphic class to draw a Bitmap image. But what method I should use to draw a BitmapField image.
Sorry for my ignorance

Thanks
Shwaup Biswas.
   
  (#5 (permalink)) Old
jfisher Offline
CrackBerry Addict
 
Posts: 714
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Default 02-08-2007, 04:21 AM

just add it to your screen, create a named instance so you can change it's contents from a button event:

BitmapField myBitmapField = new BitmapField(someBitmap);
add(myBitmapField);

then from you button event you can change the contents of the field using myBitmapField.setBitmap(anotherBitmap);


new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
   
  (#6 (permalink)) Old
Biswas Offline
New Member
 
Posts: 11
Join Date: Feb 2007
Model: 7100T
Carrier: Hutch
Default 02-08-2007, 06:03 AM

Hi,

Thank you a lot. This code is executing properly.

Regards,

Shwarup Biswas.
   
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-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.