Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
peter_strange
Posts: 14,614
Registered: 07-14-2008

Re: manager problem

Two KB articles that might help.

 

Support - My scrollable manager is not scrolling
Article Number: DB-00504
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800508/...
 
How To - Create a scrollable image field
Article Number: DB-00681
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/...

Please use plain text.
Contributor
Normie
Posts: 31
Registered: 02-09-2010
My Carrier: telus

Re: manager problem

Thats correct...The bitmap will not scroll to the bottom of the image before the buttons focus

cutting the image in half

 

Cheers !!!

Please use plain text.
Developer
zany
Posts: 222
Registered: 11-11-2009

Re: manager problem

can you please tell me for which device you are developing your app and in which version?

with regards,
Vignesh J

-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Don't forget to mark your post as solved if you get the answer and dont forget to give kudos if the answer is useful for you.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please use plain text.
Contributor
Normie
Posts: 31
Registered: 02-09-2010
My Carrier: telus

Re: manager problem

I'm using Java  5.0.0.0. and using the default simulators 9000, 9700, 9550

Please use plain text.
Developer
zany
Posts: 222
Registered: 11-11-2009

Re: manager problem

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

with regards,
Vignesh J

-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Don't forget to mark your post as solved if you get the answer and dont forget to give kudos if the answer is useful for you.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please use plain text.