Blackberry horizontal scroll in bottom menu bar

Posted by Dachmt on Stack Overflow See other posts from Stack Overflow or by Dachmt
Published on 2010-06-14T19:24:21Z Indexed on 2010/06/14 19:42 UTC
Read the original article Hit count: 638

Hi,

I have a MainScreen that has an overlay menu at the bottom of the screen, over a map.

To do that, I have an MenuHoster (extends HorizontalFieldManager) that takes all width of the screen, 45px height and at the bottom of the screen. It overlays a map.

In my MenuHoster, and add another HorizontalFieldManager that has a background image (my menu bar image) and focusable buttons. I have too many buttons to be all in my screen, so I want to an horizontal screen.

When I create my second HorizontalFieldManager that hosts the buttons, I define the Manager.HORIZONTAL_SCROLL as style. My buttons are focusable, but nothing happens... The focus change to the next buttons but my HorizontalFieldManager does not scroll...

I tried putting the same parameter in my MenuHoster HorizontalFieldManager, the scroll is working but all my screen goes right or left, and I want only the content of my menu bar... So there is my map and my menu going left, my buttons at the bottom and the rest of the screen white.

Any idea why my second HorizontalFieldManager hosting the buttons does not scoll?

Thank you!

© Stack Overflow or respective owner

Related posts about blackberry

Related posts about menu