Previous screens Menu appearing after button click

Hi people,

Do not know how to solve this problem... I'm probably just not to consume an event somewhere.

My application is a multi-screen application. The user navigates by selecting (especially) options menu or clicking / tapping on the ButtonField. I find that when a user clicks a button in the application that pushes a new screen in the stack of navigation (in his listener to change) the following happens:

  • The new screen is displayed
  • Menu of the previous screen is displayed immediately

If the user cancels the incorrect menu... Then opens a new menu, then the appropriate menu appears.

I Build menu on the fly by substituting the screen makeMenu method. I call super first, and then create my own menu items.

Buttons just run a FieldChangeListener that grows the new screen in the navigation stack.

This behavior occurs both on my BB 8350i physical device and in the BB Storm Simulator. I use the component package 4.7.0.

How can I stop the previous screen menu to appear immediately after a button click event pushes a new screen?

Thank you!

Add CONSUME_CLICK in your ButtonField constructor style bits.

Tags: BlackBerry Developers

Similar Questions

  • ListField: menu appears after clicking navigation

    Hello members of the community.

    I have a problem with the menu displayed on the screen with ListField after navigation click event is raised.

    Here is what I do to reproduce this problem:

    -navigation click on the selected entry of the ListField control,

    -a new screen appears,

    -on this new screen, the menu appears which is defined for the screen on which is placed the ListField control.

    The click of the navigation is managed in the following way:

    protected boolean navigationClick (int status, int time)
    {
    Field = this.getFieldWithFocus ();

    If (instanceof ListField field)
    {

    MyAnotherScreen an another = new MyAnotherScreen();

    UiApplication.getUiApplication () .pushScreen (another);

    Returns true;
    }

    Return super.navigationClick (status, time);
    }

    protected boolean navigationUnclick (int status, int time)
    {
    Returns false;
    }

    The ListField is declared as follows:

    lstData = new ListField (0, Field.FIELD_HCENTER);
    lstData.setMargin (2, 2, 2, 2);

    Reminder is set in the more standard way - there is nothing special in it.

    I looked for a something, that allows to consume the click for the ObjectListField as ButtonField.CONSUME_CLICK the fact for ButtonField controls, but... so far without success. That's why I decided to write a post here.

    Thanks in advance for any help!

    I solved the problem.

    It was caused by the fact that the screen, on which the ListField control was not closed. After you have added the line, it works fine now:

    If (instanceof ListField field)
    {

    MyAnotherScreen an another = new MyAnotherScreen();

    UiApplication.getUiApplication () .pushScreen (another);
    This.Close ();
    Returns true;
    }

  • When I turn on my blue screen laptop appear after windows error recovery windows also appear

    When I turn on my laptop, a blue screen appears after windows error recovery windows appear also... ask in safe mode are normal windows startup?... what I can do... is a problem on my system?... Please help me...

    Hello

    ·         What operating system is installed on the computer?

    ·         What are the error messages that are displayed on the blue screen?

    ·         Did you make any changes before the show?

    In the recovery menu, select Safe mode and check if you can connect?

    You can also try to restore the system in safe mode.

    If you are able to boot to the desktop in safe mode, then I suggest you put the computer to boot in safe mode and check if it helps:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Reference: resolution in Windows 7 stop errors (blue screen)

  • Menu appears on touchevent click EditField. CONSUME_CLICK is not an option to the edit field.

    The Menu appeared on a touchevent click an EditField.  CONSUME_CLICK is not an option to the edit field.

    He always did, but I still have to figure out what caused change to happen.  Maybe because I went to GridFields.  Anyone has any ideas on how to avoid that the menu when I use a touchscreen device and click the EditField?

    Thank you!

    When you override navigationUnclick, return false - return super.navigationUnclick (status, time). It is a cleaner way to do it and it saved my day several times.

  • PL/SQL after button click

    Hello

    I have a button that calls a javascript, via the option "Option URL Redirect" function, when it is selected.

    Is it possible in APEX have the same button click Run code PL/SQL to change the database, lets say create an empty table - "create fictitious table (identification number)?

    Ideally the PL/SQL runs before the javascript.

    I tried various process and management options, but it seems that only the javascript code is called.

    Any help appreciated,
    Dave

    Hello Dave,

    You can call an application process (PL/SQL) (type: On Demand) of in Javascript.
    Like that (to execute the PL/SQL procedure Get_Company_Address):
    var getter = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is Get_Company_Address', 0);
    gReturn = getter.get ();

    Greetings,
    Roel

    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.Logica.com/

    You can assign this answer to your question in marking it as useful or Correct ;-)

  • Menu appears with each click

    Howdy, all.

    I develop a form by using the API of the RIM, and for some reason, whenever I click outside of a field in the storm, a submenu appears with several choices (show the keyboard, exit, etc.).  It's embarrassing.  It also happens when I push a new screen in the stack.  How can I avoid this?

    Here is an example of code, but I think it's more a question of a general nature.

            VerticalFieldManager vfm = new VerticalFieldManager(Field.FIELD_VCENTER);
            vfm.setPadding(20, 20, 20, 20);
    
            // Continue Button
            ButtonField exit = new ButtonField("Agree and Continue", Field.FIELD_HCENTER);
            FieldChangeListener exitListener = new FieldChangeListener()
            {
                public void fieldChanged(Field field, int context)
                {
                    UiApplication.getUiApplication().pushScreen(Screens.sCallButtons);
                }
            };
            exit.setChangeListener(exitListener);
            exit.setMargin(20, 0, 0, 0);
            vfm.add(exit);
    

    To be clear, replace the line with this:

    ButtonField exit = new ButtonField("Agree and Continue", Field.FIELD_HCENTER | ButtonField.CONSUME_CLICK);
    
  • How can I prevent BB menu appearing AFTER a field is disabled?

    Hello

    I've got a field (in this case, a choiceField) that I disable after a selection is made and a button is pressed.  No problem.  But if I then click the disabled choiceField, the BB menu.  This can be avoided?  Is there some kind of consume_click-like functionality, that I can use for this?

    Kind regards

    Scott

    Yes, I found that.  Here's the code to add:

    protected boolean navigationClick(int status, int time) {
            return true;
    }
    
  • JavaScript windows do not appear after you click a link that opens a new window

    When I try to click on a link that opens a new window (like to put an image in a Tumblr post or use an article on Neopets (don't judge me)), it will not. In the lower left corner of the page, it says "javascript:; ' or ' JavaScript: void ' or something like that.

    In this regard (I think), Firefox only opens a new window, even if I press ctrl + N or manually, click on 'New window' in the menu.

    Safe mode disables Extensions and themes (appearance) in Tools (Alt + T) installed > Add ons. Hardware acceleration is also disabled (the manual setting is in tools > Options > Advanced > general > use hardware acceleration where possible). You can try to isolate the cause of deactivation/activation of suspicious modules or try in groups.

  • Want to stay on the same blade after button click - Captivate 5

    I have a button that I use to bring up a separate, a directory browser window. I need this button on every page of the module. I've got boxes to click to control the flow of the timeline from one page to another. When the user clicks on the glossary, it should stay on the current page, its information and dismiss the glossary. When I run it, the timeline stops for the button, and if clicked, the timeline progresses at the break of the click box, always on the same page. But if the user clicks on the button again, the pop-up window works but Captivate goes to the next page. Is it possible to prevent this, so that a user can click any number of times on the button without going through the progress of the timeline past this page?

    Thanks for any help that anyone can provide.

    Hi DS,.

    I use a javascript call to do what you describe all the time.

    Since I use all the time I incorporate the real full javascript in the "standard.js" Captivate file. This is the complete script:

    function openBrWindow (theURL, winName, features)
    {
    Window.Open (Theurl, winName, Features);
    }

    I save the file standard.js. On my desktop, it's the path to this file:

    C:\Program Files\Adobe\Adobe Captivate 5\Templates\Publish\standard.js

    Now I can call the script anytime.

    Here's how to set up the click-box:

    If you look at the picture of Rick (thanks Rick) in the menu control properties to the title of the Action, for the success, choose Run Javascript.

    Then click on the button in the Script window, it opens an empty window. Given that you call just the javascript code, you need not put the script in the window. Here is an example:

    JavaScript:openBrWindow('myURL.html','thewindowname','height=800px,Width=1000px,ScrollBars_=yes');

    Example of THS opens a window 800px high and 1000 px in width with the scroll bars. You can add additional attributes if you wish. Make sure the URL is correct and is the correct path and if you have more than one of them on a slide that the name of the window will have to be different. (If this continues the slide to the slide you don't have to have them all as a single, only for more than one on a slide.

    Now, click on the small arrow next to the button of the Script window. This produces a small drop down (as shown on the picture of Rick). Make sure you select 'Top' and disable the 'continue playing the Project '.

    This control makes the newly laid on the project window and stops playback of the slide. You can set other options in the properties to enable or disable captions as needed.

    I hope this helps.

    TPK

  • How can I fix the blue screen that appears after the Welcome screen and also the compaq screen changed after windows update the or to the 03/23/11

    March 23 windows set to date. a failure and then managed. After that, the compaq screen has changed and the blue display lights for a little after the Welcome screen.

    Hello

    If you think the update caused the blue screen then uninstall it to check.

    Control Panel - Windows Updates - lower left Installed Updates - uninstall or change

    Or

    Remove an update
    http://windowshelp.Microsoft.com/Windows/en-us/help/182043da-fc3e-4220-AFBC-d9b09f2b2a1a1033.mspx

    Or

    The problems with the removal of updates
    http://windowshelp.Microsoft.com/Windows/en-us/help/5a319824-5cb5-493d-9151-9a97d0f565b61033.mspx
    Or

    How to uninstall updates in Windows Vista
    http://www.vista4beginners.com/how-to-uninstall-Windows-Vista-updates

    Disable or hide optional updates on Windows Vista
    http://www.howtogeek.com/HOWTO/Windows-Vista/disable-or-hide-optional-updates-on-Windows-Vista/

    ==============================================================

    If not, remove the updates help then we can troubleshoot the BlueScreens.

    Check this thread for more information using BlueScreenView, MyEventViewer and other methods
    to troubleshoot the BlueScreens - top 3 responses (+ 1 other).

    http://social.answers.Microsoft.com/forums/en-us/vistarepair/thread/3deab2fa-4000-4136-8c78-a3d22b1db009

    We can analyze the minidumps if make you it available to the SkyDrive or another file
    sharing sites.

    ZIP or download the content of the C:\Windows\minidump

    Use SkyDrive to upload collected files
    http://social.technet.Microsoft.com/forums/en-us/w7itproui/thread/4fc10639-02dB-4665-993a-08d865088d65

    -------------------------------------------------------------------------

    Also this, so you can see the probable bluescreens.

    Windows Vista restarts automatically if your computer encounters an error that requires him to plant.
    (also Windows 7)
    http://www.winvistatips.com/disable-automatic-restart-T84.html

    ===========================================================

    Check out these utilities to see if information may be collected:

    It is an excellent tool for displaying the blue screen error information

    -Free - BlueScreenView scans all your minidump files created during "blue screen of death," collisions
    and displays information about all accidents of a table.
    http://www.NirSoft.NET/utils/blue_screen_view.html

    -------------

    MyEventViewer can be verified at the time of the blue screen (BSOD) within a second or so of the
    time of the BSOD to provide more information about the possible cause - see TIP.

    MyEventViewer - free - a simple alternative in the standard Windows Event Viewer.
    TIP - Options - Advanced filter allows you to see a period of time instead of the whole of the record-
    Set it for a bit before and after the time of the BSOD.
    http://www.NirSoft.NET/utils/my_event_viewer.html

    ------------

    AppCrashView - free - a small utility for Windows Vista and Windows 7 that displays the details of all the
    application goes down has occurred in your system. The information breaks down is extracted from the .wer
    the files created by the Windows Error Reporting (WER) of the operating system component of each
    time that an accident has occurred. AppCrashView also allows you to easily record the list of accidents to
    text/html/csv/xml file.
    http://www.NirSoft.NET/utils/app_crash_view.html

    I hope this helps.

  • Home screen keeps appearing after power off

    Hello

    Is there a way to permanently disable the home screen?

    Check "don't show home screen" does not work in some applications (such as InDesign and Illustrator). I saw this question quite constantly in CC 2014 and 2015 across 3 different Macs (2 x 10, 9 and 1 x 10.10) and it starts to become very frustrating.


    It seems as if every new update comes on the back screen and after in this case, the box often stops working.

    See you soon

    Ben

    Hello

    Please refer to the instructions in the links below, this should help solve the problem:

    The Welcome screen troubleshooting

    Can't hide InDesign CC2014 welcome screen

    How to disable the Welcome screen

    How can I disable the Hello screen Illustrator CC 2014 permanently?

    Let us know if that helps.

    Kind regards

    BANI

  • Unexpected menu appears in the earpiece button

    This is my first attempt at development for the BB storm, and I use JDE 4.7.

    I started with a Hello World application, I found and I modified to add a simple button that says RED. When you click on I tried the wallpaper turn RED and change the button to say BLUE, when that is clicked on it turns BLUE changes back to RED button again.

    I've implemented this, use a standard listener ButtonField (which I call bhandler in my code). The program type of works, with the odd effect only on the Simulator is that when I click the button, the background color changes but a little menu appears. Anyone else seen this problem of menu? I don't expect to see a menu and I have not coded anything to ask for a menu appear when I click on this button.

    Here is my source code. The Manager is in bold. Note that the blog mess with the code, then it could be modified slightly by the smileys... All the answers that I see not why only a menu would be most appreciated... Thank you.

    /**
    * HelloWorld.java
    * Copyright (C) 2001-2003 research In Motion Limited. All rights reserved.
    */
    package com.rim.samples.helloworld;

    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 import. *;
    Net.rim.device.api.ui.decor import. *;

    /*
    * BlackBerry applications that provide a user interface
    * must extend UiApplication.
    */
    SerializableAttribute public class HelloWorld extends UiApplication
    {
    Public Shared Sub main (String [] args)
    {
    create a new instance of the application
    and launch the application on the event thread
    HelloWorld APP = new HelloWorld();
    theApp.enterEventDispatcher ();
    }
    public HelloWorld()
    {
    a new screen
    pushScreen (new HelloWorldScreen());
    }
    }

    create a new screen that covers the screen, which provides
    standard behavior by default for BlackBerry applications
    final HelloWorldScreen class extends screen
    {
    public HelloWorldScreen()
    {

    call the constructor of the screen
    Super();

    Add a title to the screen
    LabelField title = new LabelField ("HelloWorld example", LabelField.ELLIPSIS
    | LabelField.USE_ALL_WIDTH);
    setTitle (title);

    Add the text "Hello World!" to the screen
    Add (new RichTextField ("Hello World!" );
                    
    First define the button handler
                    FieldChangeListener bhandler = new FieldChangeListener()
    {
    ' Public Sub fieldChanged (field field, int context)
    {
    ButtonField buttonField = field (ButtonField);
    If (buttonField.getLabel () is 'RED'
    {
    Bottom newback = BackgroundFactory.createSolidBackground (Color.RED);
    getMainManager () .setBackground (newback);
    buttonField.setLabel ("BLUE";)
    }
    on the other
    {
    Bottom newback = BackgroundFactory.createSolidBackground (Color.BLUE);
    getMainManager () .setBackground (newback);
    buttonField.setLabel ("RED";)
    }
    }
    };

    Define the button itself use Manager above, this one called RED
    ButtonField buttonField = new ButtonField ("RED";)     Create a RED button
    buttonField.setChangeListener (bhandler);               Implement the handler for button defined above
                     
    Add (buttonField);  Adds the button to the screen.

    }

    Override the onClose() method to display a dialog to the user
    with "Goodbye!" when the application is closed
    public boolean onClose()
    {
    Dialog.Alert ("Goodbye!" ;
    System.Exit (0);
    Returns true;
    }
    }

    You must add the CONSUME_CLICK to your style of button, like this:

    ButtonField buttonField = new ButtonField ("RED", ButtonField.CONSUME_CLICK)

  • Windows 7 Home Premium switch user screen appears after that so much time has passed well that slowed after the SmileDesktop with screen saver is installed, but do not know how to stop it.

    I used the selective startup to the Office of Smile, which replaces and updates the old Webshots Desktop, which includes the automatic download and auto downloads of images from their site as well as a screen saver.

    There nothing good. rest after so many minutes I connect get back a windows screen does not cause me to lose any data or stop all processes. All running processes continue, but it's the nagging drawback of signing as myself to the computer after having been automatically set user to switch mode. It's probably the fault of this program. In addition, before this Webshots desktop update which included also a screen saver Windows update the eve told me don't not to unplug my computer and that she had to deal with several updates of windows, so I went and the computer stop moments later. The next day was when the message for an update has been waiting for the SmileDesktop program, which is a program that mimics Webshots Desktop, as well as replace the Webshots Desktop. After installed SmileDesktop automatically changed my screen saver settings that were on any mode SmileDesktop screen saver mode. I clicked on the option to disable screen saver. That's when I first noticed the screen splash appearing after that so many minutes of inactivity, change that said user and then I started to worry.
    Norton has found no problem with my computer, and
    Finally, I gave up.

    Hello

    Thanks for asking this question to Microsoft Community.

    If I understand correctly, you want to disable the fast user switching option. Could you please answer a few questions before moving?

    Since when are you facing the issue? Do you have any security program installed on the computer? How many accounts is configured on the computer? Have you done a recent software or changes to the material on the computer?

    Here is an article that will help you to turn off the fast user switching option. Alternatively, you can uninstall Office to smile and check if it helps. You can also make the screen saver password that is built into Windows. Follow these steps:

    (a) open screensaver settings by clicking the Start button, then Control Panel. In the search box, type screen saver, and then uncheck the box for password game screen.

    Hope this information is helpful and let us know if you need more assistance. We will be happy to help.

  • makemenu problem: display of the menu, but after selecting an item, menu disappears and pops up again in the Middle after the code is executed

    Hello

    I have a very strange problem on BB9700 running OS5:

    1. application with 2 screens, each with menu (makemenu)

    2. second screen is pushed by the first screen

    3. menu of second screen works as desired

    4. menu of the first display shows the following behaviors:

    Click on BB-let the menu appear in the lower left corner. So far so good.

    After clicking the item(own item-run block is empty) menu, the menu disappears and appears back in the middle of the screen.

    This is my code (even in second screen-but working there):

       protected void makeMenu(Menu menu, int instance) {
            super.makeMenu(menu, instance);
    
            menu.add(new MenuItem("fix menus",10,20){
                public void run(){
                }
            });
    
                    menu.add(new MenuItem("Options",20,10) {
                public void run() {
                }
            });
    
        }
    
        protected boolean onSavePrompt()        {           return true;       }  
    

    In the second screen, the menu works fine, but with the first!

    Any idea?

    Thanks in advance

    Hey Ted_hopp, simon_hain,.

    I found something after commenting on overridden methods (one after another):

    I have replace onFocusNotify. If I comment I out completely, the menu works as it should.

    If I just use the following code:

    protected void onFocusNotify(boolean focus) {
    
    }
    

    with nothing else (not), the menu reappears after a click.

    So I put the forgotten 'Super.onFocusNotify (focus)' call to the first line, and all things are working properly.

    Thank you

  • pushed single screen several times on display battery but can not go back to the previous screen again by clicking on "back" to come to the first screen button

    Hi all

    There is a screen with meter as label, datefield and objectchoicefield in the menu drop down and add and go button, this screen is pushed repeatedly on display battery until the meter is new. But when I try to go back to the previous screen, there is problem normally by substituting the onClose() method you can pop current screen and can get the previous screen, using getActiveScreen() and then push it again if you do not override os onClose() automatically do it for you.

    But in above case when I click on the button "back" or screen previous override onclose and push, I see my first screen I wanted my current screen with the counter that is if active screen is having against label like new if I press the "back" button, it should display screen with the meter only eight and so on.

    Can someone please help me solve this problem.

    Thanks Peter for you answer, actually used function for pushscreen on stach display that was written by someone else, when I looked carefully there condtion as below,

    if (activeScreen != null) {
     Class screenClass =activeScreen.getClass();
        if (screen.getClass().equals(screenClass)) {
                        UiApplication.getUiApplication().popScreen(activeScreen);
        }
    }
    

    It's actually the previous screen of poping before push the screen from the class were same, just commented and everything works, even if you do not override onClose and press return, it will automatically displays the previous screen.

Maybe you are looking for

  • ATI Radeon HD 4870 and 10-bit color

    I recently bought an ATI Radeon HD 4870 graphics card to the address used (Apple model #-MB999ZM/A) to install in my Mac Pro early 2008. This card was originally proposed by Apple as an upgrade to the previous Mac Pros. The card has a mini display po

  • Windows 7 Starter: drive mapped to the network connection may be lost

    Help! I found this Microsoft Fix to my problem, and it worked on my one of my computers. However, it will not download on my computer with Windows 7 Starter operating system: http://support.Microsoft.com/kb/297684/en-us Any suggestions?

  • Why some Pogo games load and some used to Pogo games?

    A new HP 64 bit and windows 7.  It took google chrome because that kept getting errors in Java with IE.  Not all the Pogo games are Java.  Can enter some Pogo games, but can't enter all.  Anyone has any ideas that might help?

  • SHA digest

    Greetings I am doing a Sha1 Digest on a file and compare it to what I'm doing a "Digest" SHAi in php. However, my SHA results are different between php and Blackberry competely Blackberry, I do SHA1Digest digest = new SHA1Digest(); ubyte [] bytes = F

  • Install the ear of Console - cannot run the application.

    JDeveloper 12 c 32bits.I'm checking my ear is produced correctly by deploying the console of weblogic (which is really just the integrated environment).The installation says it works great... but I can't launch the web page by using the same URL I us