List of all Iphone and Blackberry Development codes in a one click Iphone,objective C,xcode,blackberry Development,iOS Development

Friday, April 27, 2012

PictureScroll in Blackberry


private PictureScrollField _pictureScrollField;  
ScrollEntry[] entries = new ScrollEntry[ 4 ];
entries[0] = new ScrollEntry(Bitmap.getBitmapResource("image1.jpg"), "BlackBerry", "image 1");
entries[1] = new ScrollEntry(Bitmap.getBitmapResource("image2.jpg"), "Blue logo", "image 2");
entries[2] = new ScrollEntry(Bitmap.getBitmapResource("image3.jpg"), "Black logo", "image 3");
entries[3] = new ScrollEntry(Bitmap.getBitmapResource("image3.jpg"), "Building", "image 4");
 _pictureScrollField = new PictureScrollField(150, 100);
 _pictureScrollField.setData(entries, 0);
add(_pictureScrollField);


        

No comments:

Post a Comment