Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
p1_end
Posts: 11
Registered: ‎05-03-2011
My Device: Blackberry 9800
My Carrier: GSM

Blackberry Storm - Menu buttons positions are not changing

Hi,

 

While pressing menu buttons are coming but ther positions are not changing while rotating the screen . If it is in potrait mode their positions remain same and vice versa in landscape mode.I have used delegate in sublayout.

 

 protected void sublayout(int maxWidth, int maxHeight) {
        initResources();
        if (Display.getOrientation() == Display.ORIENTATION_PORTRAIT) {
            menubar_Temp = menubar_P;
        } else if (Display.getOrientation() == Display.ORIENTATION_LANDSCAPE) {
            menubar_Temp = menubar;
        }
        maxWidth = menubar_Temp.getWidth();
        maxHeight = menubar_Temp.getHeight();
        super.setExtent(maxWidth, maxHeight);
        layoutDelegate(maxWidth, maxHeight);
        setPosition(0, (Display.getHeight() - maxHeight));
    }

 

 

HELP......???

Please use plain text.
Administrator
MSohm
Posts: 14,305
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Blackberry Storm - Menu buttons positions are not changing

Are you saying that you click the menu button to bring up the menu, rotate the BlackBerry Smartphone and the menu remains in its previous location while your screen rotates?  Can you post a screenshot of this?

 

What BlackBerry Smartphone model and BlackBerry device software version are you testing on?  You can find this under Options, About on the BlackBerry Smartphone.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Contributor
p1_end
Posts: 11
Registered: ‎05-03-2011
My Device: Blackberry 9800
My Carrier: GSM

Re: Blackberry Storm - Menu buttons positions are not changing

Hi,

 

Yes the positions of the buttons remain in same positions when i rotate the screen in landscape modeIt should change according to the orientation.Their is some space problem.After rotating the scree when we bring menu bar down and then up at that time buttons are coming at their appropriate positions.This situation is coming in both landscape and potrait mode.

 

 

Please use plain text.
Administrator
MSohm
Posts: 14,305
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Blackberry Storm - Menu buttons positions are not changing

Can you post screenshots?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.