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
New Contributor
Posts: 3
Registered: ‎03-11-2010
My Device: All
Accepted Solution

Removing bottom panel from application (touch screen devices)

[ Edited ]

hello

 

I want to remove bottom panel (in red) from application screen. It appears when I extend MainScreen.

How I can do it?

 

Also I have complex layout on my screen and scrolling works incorrecly (it always scroll to the top of the screen) when I press any button on this panel.



BlackBerry Development Advisor
Posts: 14,971
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Removing bottom panel from application (touch screen devices)

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

 

Can you provide some sample code for your custom MainScreen?

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
New Contributor
Posts: 3
Registered: ‎03-11-2010
My Device: All

Re: Removing bottom panel from application (touch screen devices)

Ok, simple example:

import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.container.MainScreen;

/**
 * 
 */

public class TestScreen extends MainScreen {

    public TestScreen() {
        super();
        for (int i = 0; i < 20; i++) {
            add(new ButtonField("Btn " + i));
        }
    }

}

 

 

 

When I use this code bottom panel appeared and I couldn't remove it. Also its behaviour is strange.

I use 4.7. And simulator 9530.

 

 

Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: Removing bottom panel from application (touch screen devices)

Does this happen on the device as well or only the simulator? I have never seen this happen before, often you need to add your own toolbar for something like that.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Removing bottom panel from application (touch screen devices)

This is a known issue on the 4.7 9530 simulator. The system toolbar will not show up on the device.

New Contributor
Posts: 3
Registered: ‎03-11-2010
My Device: All

Re: Removing bottom panel from application (touch screen devices)

I'd tried it only on the simulator.

 

If it doesn't show up on the real device - it's great. thanks