03-24-2010 04:52 AM
Two KB articles that might help.
Support - My scrollable manager is not scrolling
Article Number: DB-00504
http://www.blackberry.com/knowledgecenterpublic/li
How To - Create a scrollable image field
Article Number: DB-00681
http://www.blackberry.com/knowledgecenterpublic/li
03-24-2010 10:37 PM
Thats correct...The bitmap will not scroll to the bottom of the image before the buttons focus
cutting the image in half
Cheers !!!
03-25-2010 01:06 AM
can you please tell me for which device you are developing your app and in which version?
03-25-2010 11:12 PM
I'm using Java 5.0.0.0. and using the default simulators 9000, 9700, 9550
03-26-2010 02:47 AM
have you ever tried like this
class SampleScreen extends MainScreen
{
public SampleScreen()
{
super (Screen.VERTICAL_SCROLL | Screen.HORIZONTAL_SCROLL);
HorizontalFieldManager manager = new HorizontalFieldManager (Manager.USE_ALL_WIDTH);
manager.add (new ButtonField ("HI")
{
protected boolean touchEvent (TouchEvent message)
{
if (message.getEvent() == TouchEvent.CLICK)
{
Dialog.alert("Hi");
System.out.println("Welcome buttom");
return true;
}
return false;
}
});
manager.add (new ButtonField ("WELCOME")
{
protected boolean touchEvent (TouchEvent message)
{
if (message.getEvent() == TouchEvent.CLICK)
{
Dialog.alert("Welcome");
System.out.println("Welcome buttom");
return true;
}
return false;
}
});
add (new BitmapField (Bitmap.getBitmapResource("1.jpg")));
setStatus(manager);
}
}
this code is working fine for me