tags:

views:

27

answers:

0

I am struggling with a stange issue.I have used three HorizontalFieldManagers in a screen with buttons on it. On the bottommanager I have a next button when I click on the button it should generate the data in the topmanager.I am able to display the data using Labelfied, but when I click on the next button it is not going to the next data.When I click on the middlemanager having a button on it, it is going to generate the next data value on the top manager.

`dataVfm = new HorizontalFieldManager() { protected void sublayout(int maxWidth, int maxHeight) { layoutChild(data, maxWidth, maxHeight); setPositionChild(data, 90, 150); setExtent(maxWidth, 250); }

    };

btnHfm = new HorizontalFieldManager() {

        protected void sublayout(int maxWidth, int maxHeight) {
            super.sublayout(maxWidth, maxHeight);
            layoutChild(investigateBtn, maxWidth, maxHeight);
            setPositionChild(investigateBtn, 100, 50);
            setExtent(maxWidth, 100);
        }
    };

hfm = new HorizontalFieldManager() { protected void sublayout(int maxWidth, int maxHeight) { super.sublayout(maxWidth, maxHeight);

            layoutChild(next, maxWidth, maxHeight);
            setPositionChild(next, 300, 60);
            layoutChild(number, maxWidth, maxHeight);
            setPositionChild(number, 90, 65);
            layoutChild(previous, maxWidth, maxHeight);
            setPositionChild(previous, 50, 60);

            setExtent(maxWidth, 100);
        }
    };

In addition to this when I clicked on not only on the button but also on entire middlemanager, the button event got fired.I need to place four buttons on it.can anyone help me in this regard. `