Position screen Popup (positioning)

Hello!

I work with the 8820 model. and the last time I tried to created screen as he takes care of not any physical display, but

only a part of it; such as indicators (level of the dough, the GSM signal strength, clock, etc.) are still visible on the top of the screen. An example is a standard alarm application, which comes with all devices.

However, I couldn't do - main screens still occupy all discplay. and they advised me to use instead the pop-up screens.

I use pop-up screen, but my problem is that she is always all display. Even if I replace sublayot and try to reposition, reposition it, but the background remains white. as if I inserted a screen empty and then inserted my popup. I don't understand why.

I need popup screen with the display as a main screen list of my application. and at the same time, I wish that it be small, such as

the user can see clock, indicators, etc., exactly as the standard alarm application

could you help me please?

Thank you

Sandrine

Thank you all for your answers. It seems that I must make my own header like Bika suggested.

Basically, I want to do exactly same thing as Bika described.

but I wanted to let the system header and avoid attracting the custom header. However, it seems that if I use HeaderBar, the end result is the same.

I tried to use
Ui.getUiEngine () .pushGlobalScreen (new PopupScreen (vertManager), 1, UiEngine.GLOBAL_QUEUE);

I'm not using USE_ALL_WIDTH. However, it is always appears as a small window on the big white screen which occupies
Physics show all.

I'll try to use HeaderBar, as it seems the only way.

in any case, thank you all for your help.  This forum is the most useful that I've ever seen. I hope that my experience grows,
I will pay back to the community.

I'm marking this thread as fixed.

Tags: BlackBerry Developers

Similar Questions

  • Earpiece screen Popup

    Hello

    I was wondering if it was possible to

    (1) catch the event where focus is lost from the screen when pop-up screen is pushed

    (2) catch the event when focus returned to the screen when screen popup is closed.

    I looked to be implemented

    FocusChangeListener

    setFocusListener (this);

    ' Public Sub focusChanged (field field, int eventType)

    However, I understand that it snaps focus changed events from various fields in screen & focusChanged for is not triggered when the pop-up screen is pushed to the stack.

    Is this correct?

    I'm relatively new to BB JDE and I would be grateful for any help.

    Kind regards

    Bob.

    In fact, the OnFocusNotify method is probably the function you want to watch.

    -Donald

  • A screen popup menu is opened after the closure of the dialog box

    Hello

    I have a test application with a screen containing a button.

    When I click on the button (pressing the button on my BlackBerry 9220 trackpad), it opens a dialog box.

    Then when I press ESC to my BlackBerry 9220, it closes the dialog box and I'm back on my screen.

    Now, if I add to my screen, a menu item, the changes in behavior:

    When I click on the button (pressing the button on my BlackBerry 9220 trackpad), it opens a dialog box.

    Then when I press ESC to my BlackBerry 9220, it closes the dialog box and opens a menu screen.

    So, I would add my item of menu but keeping the old behavior of my application after you close the dialog box.

    Any idea?

    Thank you.

    Best regards.

    Here is the code:

    Import net.rim.device.api.ui.UiApplication;
    Import net.rim.device.api.ui.component.ButtonField;
    Import net.rim.device.api.ui.component.Dialog;
    Import net.rim.device.api.ui.container.MainScreen;
    Import net.rim.device.api.ui.Field;
    Import net.rim.device.api.ui.FieldChangeListener;
    Import net.rim.device.api.ui.MenuItem;
    Import net.rim.device.api.util.StringProvider;
    SerializableAttribute public class TestApplication extends UiApplication
    {
    public TestApplication()
    {
    this.pushScreen (new TestScreen());
    }
    Public Shared Sub main (String [] args)
    {
    Application TestApplication = new TestApplication();
    application.enterEventDispatcher ();
    }
    }
    final TestScreen class extends FieldChangeListener implements screen
    {
    public TestScreen()
    {
    / * MyMenuItem MenuItem = new MenuItem (new StringProvider ("my menu item"), 0 x 230000, 0); * /
    ButtonField myButtonField = new ButtonField ("button my field");
    myButtonField.setChangeListener (this);
    This.Add (myButtonField);
    / * this.addMenuItem (myMenuItem); * /
    }
    ' Public Sub fieldChanged (field field, int context)
    {
    Dialog.Alert ("test");
    }
    }

    Here are a few screenshots:

    It comes from the popup menu. create the button with CONSUME_CLICK would be the simplest solution.

  • Screen Popup problem

    Hello

    I need to display a popup with a message and two buttons and based on the selection of button I want to do an action.

    I am able to display the popup screen with buttons. But the buttons do not update.

    Please find the code below. Can someone tell me where I was wrong.

    Thanks in advance.

    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.*;
    
    class RegPopup extends Screen {
    
    private final static int _CUSTOM_SIZE = 150;
    private final static int _ALPHA = 0xBF; // 75% alpha
    private final static int _X = ( Display.getWidth() - _CUSTOM_SIZE ) >> 1;
    private final static int _Y = ( Display.getHeight() - _CUSTOM_SIZE ) >> 1; 
    
    private LabelField wait = null;
    private LabelField status = null;
    VerticalFieldManager vm = null;
    ButtonField try_button = null;
    ButtonField exit_button = null;
    
    RegPopup() { 
    
    super( new VerticalFieldManager(VerticalFieldManager.VERTICAL _SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR));
    init();
    }
    
    private void init(){
    wait = new LabelField( "Please wait ..." );
    this.add(wait);
    //this.setFocus();
    }
    public void setMessage(String message){
    if(message != null){
    status = new LabelField(message);
    this.add(status);
    this.add(new RichTextField(Field.NON_FOCUSABLE));
    addButton();
    changeMessage();
    }
    }
    
    private void addButton(){
    vm = (VerticalFieldManager)this.getDelegate();
    //vm.setVerticalScroll(0);
    //vm.setFocus();
    HorizontalFieldManager midManager = new HorizontalFieldManager(HorizontalFieldManager.FIEL D_HCENTER | HorizontalFieldManager.HORIZONTAL_SCROLL);
    try_button = new ButtonField("Try Again");
    exit_button = new ButtonField("Exit");
    // try_button.setFocus();
    
    try_button.setChangeListener(new FieldChangeListener(){
    public void fieldChanged(Field field, int context) {
    ButtonField buttonField = (ButtonField) field;
    
    closePopup();
    
    }
    });
    exit_button .setChangeListener(new FieldChangeListener(){
    public void fieldChanged(Field field, int context) {
    ButtonField buttonField = (ButtonField) field;
    
    //System.exit(0);
    
    }
    });
    
    // midManager.setFocus();
    midManager.add(try_button);
    midManager.add(exit_button);
    
    vm.add(midManager);
    
    //this.add(vm);
    
    }
    private void closePopup(){
    this.close();
    }
    /**
    * This method repaints the screen with new Message
    * Added by Koka Phani
    */
    private void changeMessage(){
    
    final Screen scr = this.getScreen();
    if(scr!= null){
    UiApplication.getUiApplication().invokeLater (new Runnable() {
    
    public void run(){
    try{ 
    
    scr.invalidate();
    
    }catch(Exception e){}
    }
    });
    } 
    
    }
    protected void sublayout( int width, int height ) {
    setExtent( _CUSTOM_SIZE, _CUSTOM_SIZE );
    setPosition( _X, _Y );
    layoutDelegate( _CUSTOM_SIZE, _CUSTOM_SIZE );
    }
    
    protected void paintBackground( Graphics g ) {
    XYRect myExtent = getExtent();
    int color = g.getColor();
    int alpha = g.getGlobalAlpha();
    g.setGlobalAlpha( _ALPHA );
    g.setColor( Color.BLACK );
    g.fillRect( 0, 0, myExtent.width, myExtent.height );
    g.setColor( Color.WHITE);
    g.setGlobalAlpha( alpha );
    }
    
    public boolean onClose(){
    return false;
    }
    }
    

    Hi all

    Thanks for your time. I found the problem. Stupid mistake not having not try catch blocks to debug.

    The problem is that I update the screen with calling the call later.

    Once again thank you for your time.

    Concerning

    Koka

  • Screen popup but keep interaction with stacked screen

    Hello

    I'm developing an application in which I want to display a message to the user but I want to keep interacting with the screen.

    The idea is that, when the focus is on an image, appears the name of the image, but the user is able to move the focus to another element.

    I need popup, a screen because I don't want to change the layout of the stacked display.

    Is it possible to do this? Any example or an idea to follow?

    I tried to push the screens in Modal and Global mode, but when I pop up I lose interaction with the stacked display.

    Thanks in advance,

    Carles

    All UI events go the screen that currently has the focus.

    Two things I can think of:

    * maintain an ack of on-screen originak callback mechanism so that the UI events may be returned

    * Do not use popup screen - simply paint the tip when it is appropriate and remove it when the focus moves to another element.

    Probably, I would lean towards the second solution - we do it for the ToolTips currently and it works fine.

  • BlackBerry programming - screen popup close with a tap

    I have a popup screen (small screen) is on a main screen.

    This popup form has a button, the button will close the screen when you click on it.
    Do you know how to close this popup screen users by typing on the phone, outside the area that the popup of the net (without clicking the button)?

    FYI: app is designed to work on the touch phone only (BB storm, BB torch...)

    try to replace public boolean touchEvent (TouchEvent event) in your popupscreen.

  • screen popup asking for verification of the certificate

    What are the pop-up messages appearing to ask for verification of the certificate? I'm starting see them more often, and all I do is click the button cancel on the popup.

    You must reach the button cancel on the popup, especially if it's the invasive ad.dublclick.net

  • Need screen PopUp on the user interface until some time of execution of method in the background.

    Hi all

    In my Blackberry application, I have a button, clicking the button I'm going for a substantive treatment that takes 2 or 3 minutes of time. For this 2 or 3 minutes of time, I need to show it please wait... the pop-up screen. After the completion of the contextual background processing screen should be disappear automatically.

    Hi all, thanks for your answers... I've already done this using the thread class.

  • Password screen popup

    IDE: Blackberry JDE Version 4.5.0.7

    Simulator: About us - Smartphone BlackBerry 2.9.0.52 Simulator

    Model: BlackBerry Curve 8310 smartphone

    Hello

    I want to protect an application with a pop-up screen password exactly like the one proposed here.

    So I have this PasswordPopupScreen class declared inside my main UiApplication class. But where and how do I initialize it to make it the first screen that appears when the main application is called on the menu of the Blackberry Application?

    Thank you.

    You would initialize it the same way as you push your main screen:

    UiApplication.getUiApplication () .pushScreen (new PasswordProtectScreen());

  • How to create a splash screen / popup

    How can I create a pop up, superimposed on the landing page asking the new visitor to enter their email until you view the Web site?

    You can design a separate page. as not included in the menu bar. and as the first page as my website www.saeedalkarmi.com.

    create a page, do a right-click on it, choose the options menu then choose exclude page from menu to remove the menu bar. After that you have a page separate as first page of your site.

    put your form widget to fill as a record or information collection,

    hope you find good,

  • Set the position of a PopupScreen

    Is there a way to define the position of top, on the left of a PopupScreen? SetPosition(x,y) call will throw this error:

    java.lang.IllegalStateException: setPosition called outside the layout

    I use JDE 4.2.1 8800 Simulator.

    Thank you

    Ryan

    Quote from the old forum:

    ligraseac

    Messages: 2
    Join date: Jun 2007

    Screen Popup position
    Posted the: June 29, 2007 05:45
     
    Hello

    How can I set the position of a popup screen? I want to set its position next to a field that has the focus.

    Thank you

    Comments: fjarlier
    Re: Screen Popup Position
    Posted the: 5 July 2007 17:10
     
    Hello

    In your class that extends the PopupScreen, you must override sublayout like this:

    ' public void sublayout (int width, int height) {}

    Super.sublayout (Width, Height);
    setPosition (50,50);
    }

    Because the setPosition can occurs only in the layout method. And then, you can position your PopupScreen anywhere you want.

    For me it works...

    If you have another solution, that I take.

    So long

    Fred

  • How to access the screen under display PopUp

    Hello

    I made a transparent display of the PopUp. But I want to access the screen below this screen PopUp, such as screen PopUp remains on top, but gets to focus on the screen below.

    I got the screen below, using: -.

    Ui.getUiEngine () .getActiveScreen () .getScreenBelow ();

    but I don't know how active the display below, as the Pop Up screen stays on top.

    Thank you

    Thank you very much

    You have got it. Yes indeed I used to use the option

    Ui.getUiEngine (.pushGlobalScreen) (translucent, 4, UiEngine.GLOBAL_SHOW_LOWER);

    but now it works fine.

    I fixed as Ui.getUiEngine (.pushGlobalScreen) (translucent, 4, false);

    I will mark it as a solution.

    But please tell me how can I restrict scrolling or surfing a few fields on the screen below.

    Thank you...

  • How can I stop firefox sponsored popups? They are driving me crazy!

    In the last days, when I click on some web pages, I have suddenly become a full screen Popup part. It's never happened before. They are obviously sponsored links. How can I disable it please?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

    Do a check with some malware malware, analysis of programs on the Windows computer.

    Please scan with all programs, because each program detects a different malicious program.

    All of these programs have free versions.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • Display the Volume on the screen?

    I use a Dell Inspiron 1720 with windows vista and when I use the external sound keys to change the volume or activate it power, there is no popup or any symbol on the dash board to tell me what level my volume is or if it is enabled or disabled. I am obliged to judge everything by ear that my sound level is completely enter the control panel and open the volume tab, I don't want to do. Initially when I bought the computer almost 2 years ago, I had the volume on the screen popup when I changed the volume, but all of a sudden, I'm more. What will make the volume display on my screen again?

    Hello

    Visit this link:
    http://www.colincochrane.com/post/2007/10/Windows-Vista-disappearing-system-tray-icons-fix.aspx

    All the best!

  • How can I return a result of popup to parent form

    Hi guys

    This is probably a very simple question.

    How can I return a result of popup to parent form?

    Thank you

    Hi dpolonsky,

    due to the fact that your screen popup and parent are in classes separated.

    So create your own set and get methods/functions that can be called from another class.

    Because the variables are known only in the class, they were defined (information hiding), then you must use the functions/methods, that affects the apropriate values.

    in your parent class, you can define a method like:

    void setFromPopup (int intval) {}

    intval = globalintvalfrompopup; globalintcalfrompopup is declared globally within your class

    }

    and in your child (popup) class, you can call via

    .

    .

    int TestInt = 10;

    parentclass.setFromPopup (testint);

    .

    .

    It is a general question of JAVA.

    Hope it helps.

Maybe you are looking for

  • Check for laptop

    Hi all! How long does it take before you receive a confirmation of your standard warranty? It's almost a week since I have saved my laptop. Apart from the registration of the guarantee and the MicrosoftOffice OneNote, is it necessary to register for

  • Update Vista & Driver Signature

    Today (17/08/09) my computer automatically downloaded and tried to install a Vista update any.  Now the computer will start only in mode "Disable Driver Signature Enforcement".  Normal, just boots to hang.  Coincidentally (or maybe not!) several prog

  • random display of XP screensaver

    How do I change a regular order random display screen saver?

  • Problems with synchronization of Windows Mail

    When I open Windows Mail in Vista, all messages in my Inbox from my account (earthlink) default are automatically downloaded into the Inbox, Windows mail and deleted the default account.  Help, please.

  • Cannot print in color from Mac to HP 8620

    I just bought a new printer 8620, and it allows to print only in black and white. I looked for ways to pass color printing, but I can't find. The color ink is in good shape, if this isn't the issue. Carl