Search code examples
blackberryjava-me

VerticalFieldManager won't show scrollbar


In my blackberry app I have multiple cases where I have a scrolling VerticalFieldManager. They all scroll and behave correctly, but I can't seem to get any of them to show the scroll bar arrows. This is the code I am using to initialize them (They are all roughly the same)

VerticalFieldManager manager = new VerticalFieldManager(VerticalFieldManager.USE_ALL_WIDTH | VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR);

Any ideas? I don't understand why they won't show up. Thanks,


Solution

  • I figured it out!

    It was because while I had a VerticalFieldManager that took up the entire screen (called primary), which was intialized without scroll, I didn't actually call super(Manager.NO_VERTICAL_SCROLL).

    So if anyone else stumbled here with the same problem, I couldn't get my children Managers to show a scroll bar, untill I called super(Manager.NO_VERTICAL_SCROLL), even if the elements I wanted to scroll were in a manager that had NO_VERTICAL_SCROLL set.