08-05-2012 01:27 PM
Hi all!
I have a problem. I have created a manager which has two editfields and a button. This manager should scroll on another manager. i tried using setVerticalScroll() method. But the manager below, is disturbing. Please tell me how to get this.....
Regards
Raju
08-05-2012 06:35 PM
08-06-2012 04:39 AM
I am sorry to say I do not understand what you are trying to do. Can you try to explain again, perhaps with a picture?
08-06-2012 09:58 AM
Welcome to the forums!
First of all, determine which of the managers is/are scrolling. Managers created with VERTICAL_SCROLL and/or HORIZONTAL_SCROLL flags may be scrolling, as well as MainScreen without NO_VERTICAL_SCROLL (for more details about MainScreen, see here: MainScreen explained).
I say "may be" and not "is" because a Manager will not scroll unless it needs to display more than the screen space given to it allows. For example, a VerticalFieldManager created with VERTICAL_SCROLL style bit and the total height of its managed fields of 360 will not scroll if it is given the height of 480 pixels, but will scroll if it has only 320.
Managers created with VERTICAL_SCROLL / HORIZONTAL_SCROLL flags know that they can fit more than their on-screen dimensions allow and let their "children" have an almost infinite (0x3FFFFFFF) height / width, so a Manager with VERTICAL_SCROLL added to another Manager with VERTICAL_SCROLL will not scroll because it will be able to fit its children within the height given to it by its parent Manager.
Take a look at all your Managers on the way up to the Screen level, including Screen itself, and check which ones are scrolling and which are not. Those which are can be controlled using their setVerticalScroll() methods.