Prevent the popup "Menu" with each new screen

I tried in vain to remove the popup "Menu" that appears down to the center of the screen of the device whenever I push a new screen in the display stack.

Dominant onMenu(), makeMenu (menu Menu, int for example) or makeContextMenu(ContextMenu menu) attempts have all failed to reach my goal.  Here is a simple code that is affected by this problem I describe.  When I click on the button which brings me to the second screen, a context menu with only one 'Full Menu' appears down to the center of the screen.  Thanks in advance if anyone can help me to solve this apparently simple problem.

public class TestApp extends UiApplication {

    public static void main(String[] args) {
        TestApp testApp = new TestApp();
        testApp.enterEventDispatcher();
    }
    public TestApp(){
        pushScreen(new TestScreen());
    }

    public class TestScreen extends MainScreen {
        ButtonField button1, button2;
        public TestScreen() {
            button1 = new ButtonField("Button1");
            button1.setChangeListener(new ButtonListener());
            button2 = new ButtonField("Button2");

            add(button1);
            add(button2);
        }

        final class ButtonListener implements FieldChangeListener {
            public void fieldChanged(Field field, int context) {
                UiApplication.getUiApplication().pushScreen(new TestScreen2());
            }
        }
    }

    public class TestScreen2 extends MainScreen {

        public TestScreen2() {

        }

        public void makeMenu(Menu menu, int instance) {

        }
    }
}

You must set the CONSUME_CLICK style on the button.

Tags: BlackBerry Developers

Similar Questions

  • I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not display in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not appear in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    You must save the spreadsheet containing the new date as a model format and use this custom template for each new spreadsheet where you want that this date format personalized at your disposal.

  • How to prevent the context menu?

    I have a view of the image that has a context menu that are associated with, and I have a slider that is in addition to that view.

    When I set the cursor, if my finger is placed on a spot for a while, the context menu of the display of the image is raised.

    It is very undesirable.  Is there a way to prevent the opening if the cursor is in interaction with the context menu of the image?

    You can interrupt the opening from the popup menu.

    Here is an example of my code, replace 'condition' by your own condition:

    contextMenuHandler: ContextMenuHandler {
         onPopulating: {
            if (condition) {
               event.abort();
             }
          }
    }
    
  • I need to print a new Page of alignment with each new cartridge?

    I have to print a new alignment Page with each new cartridge I install on my HP Photosmart C4480?  Or can I save and reuse the original I got when first installing my printer cartridges?  The pages of the alignment, all seem to be the same when I print them with each new cartridge I install, but I'm not examine them under the microscope.

    If I can save and reuse the alignment page with encourages the replacement of cartridge, when I'm following the procedure of installing a new cartridge and the printer ask me to print a new alignment page, is there an option to skip this step?  I don't remember seen this option in the Control Panel on the printer window.

    Thank you!

    No, you can avoid printing the page by reusing the previous cartridge alignment page. Information on the freshly printed page includes the information needed to define the operating energy.

  • Not fully functional mouse with MacBook Pro 2010. I can scroll up and down, but can not move the cursor.  The mouse works with my new Macbook 12. No mouse problem but Macbook Pro?

    Not fully functional mouse with MacBook Pro 2010. I can scroll up and down, but can not move the cursor.  The mouse works with my new Macbook 12. No mouse problem but Macbook Pro?

    What specific mouse?

  • I changed the my imac with a new drive and I lost the original CD/DVD which came with the new Mac.

    I changed the my imac with a new drive and I lost the original CD/DVD which came with the new Mac.

    and when I go to install the mac lion antiracism apple with reticle logo means error

    what can I do with these

    Please help money

    You can get the replacement system install & Restore CD/DVD of the customer support of Apple - to the United States, (800) 767-2775-for a sum low S & h. you will need to have the model or the serial number of your Mac available.

    If you are not in the United States, you may need to go through the regional Apple Store that serves your location to find the phone number. Here is a list of links to all - http://store.apple.com/Catalog/US/Images/intlstoreroutingpage.html , another resource: International Support Phone #s.

  • SatelliteA205 - player for the top menu with shortcuts for functions (Fn)

    Hello

    I have a Satellite A205-S4797 and I installed Vista Business (Pt_Br).
    Even with the drivers for Vista, I can not install the top menu with shortcuts to functions (Fn).

    Is there a specific driver for this version of Vista (Pt_Br)?

    If you write on flash cards that you need to install the package of added value. This package contains several tools and utilities, and one of them is for flash cards.

    Please check the Toshiba download page and see if the VAP is listed.

  • [Labview] I want to get the average value in each new 100 samples.

    Hello. I'm Sophie.

    I'm studying Labview for my research.

    For me, the sampling frequency is 125KHz.

    I want to get the average value in each new 100 samples.

    Therefore, I want to get an average value of 1 ~ 100th samples and store this average value. Call assets(1).

    Then, I want to get an average of 101 ~ 200th samples and store this means value, call moyen2.

    .

    .

    .

    .

    I don't know how me I want.

    Thank you

    Sophie.

  • I bought adobe creative suite 6 on the apple store with my new mac pro book and may not know how to install it on my computer that I don't have a cd player.

    I bought adobe creative suite 6 on the apple store with my new mac pro book and may not know how to install it on my computer that I don't have a cd player.

    You can download and use the serial number of your drive to activate it.

    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html

    You can also download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    CS6: http://prodesigntools.com/adobe-cs6-direct-download-links.html

  • Failed to create the menu popup JavaScript with to display the context Menu with the help of add behaviors

    Whenever I load a page with this added behavior and test it with my link, I get a message "error on Page".

    Here's what I do:

    Create a new HTML page in Dreamweaver 8.0.2 and save it.

    Add a hyperlink in the Insert-> menu hyperlink. Do not put anything in it except a few example of text; "THIS IS a TEST", or something.

    Select the hyperlink and choose "Show the context Menu" in the tag behaviors menu tab ' + '. The dialog box will appear.

    Add a single item and add a link to a page. Do not change the other options. Click OK to close the dialog box and the code will be added to the page.

    Save the HTML page again and press F12 to load the page on your test server and display them in a browser.

    Hover your mouse over the link to test. Nothing happens and there is a message in the status bar at the bottom of the browser, "error on Page".

    OK, it works. I saw the source file that are listed there, but I assumed that Dreamweaver would be to download the file with the HTML file to test on my test server. Usually, I'm prompted to download all the dependent files. Is there an exhibitor or dreamweaver do not miss this link?

    I'm sold on convictions explained in the rants you have linked, but only after I see that Dreamweaver menus don't work. It is not entirely necessary for my completely dependent users of my menus, they are only a feature of page layout.

    Since I have the ear, maybe you could tell me something before my attempt it: is it possible to generate the JavaScript using PHP? I would like to include JavaScript in the context of records with PHP MySQL. Is there another possible solution from PHP? I guess that ASP is a solution already and maybe Flash too.

    This is the kind of page I'm working on that:

    http://www.symbiota.com/MiloTrial/witnesses.php

    I would like to see a drop down menu for each trial where the number of witnesses is less than 10 to save someone the trouble to open a new page just to see a list of ten names.

  • Is it possible to generate scripts the assignment of drive letters, such as the computer will remember each reader the same way with every new beginning?

    * Original title: Windows 7 - letters card readers

    I have a laptop computer when it is in a dock, it will have two hard drives connected.  It will also in most cases, a USB flash drive connected in and out of the dock.

    These discs are used for the back to the top of file transfer and I always wish to have the same assigned to them to drive letters.

    When I was with Windows XP, the computer remembered the mapping and each player has been located at the same place every time.  However, now I've upgraded to Windows 7 and is not only the computer remember the drive letter every time, it disconnects regularly readers.

    My question is: is there a way to the assignment of drive letters, such as the computer will remember each script will travel the same with every new beginning?

    I can live with it disconnect readers, but it is precisely an effort to use disk management to change the drive letter for each reader, whenever a re-start of your computer.

    Details: Dell E6510, Windows 7, Western Digital external drives (e-sata) 1 Flash drive (USB).

    You are aware that usb keys are not designed to stay connected on the start or stop, because there is a possibility of resulting corrupt file

  • I changed my "opinion" in full screen... How can I change from the Bar Menu with "view" is no longer available in "full screen"? I tried Esc, but it does not work...

    I used tab DISPLAY in the top left to change my mind in 'full screen '.
    Now I can't access the VIEW tab to restore. How can I change back so that this Menu will appear at the top of my screen?

    A few choices:

    1. F11 toggle full screen
    2. Move mouse in the upper part of the screen to menu bars, if show you them
    3. 'Alt + V' - to bring up the View Menu

    More information:

  • When I click on 'Options', the popup gives me a white screen for the latest updates of 4 or 5.

    Since 4 or 5 updates ago, I could not access the options on Firefox. It is for me an empty popup. It's strange to see just a screen empty and unable to do anything. All the other menus work. Addons option works, but I can't in my General options. I was desperate enough to try SeaMonkey, but I really want to Firefox (and Yes, the works of Seamonkey).

    Hello, this problem is usually caused by the ghostery addon - you could try to disable...
    https://getsatisfaction.com/Ghostery/topics/problem-with-Firefox-32-Firefox-option-is-not-displayed-when-Ghostery-is-active-in-Firefox-32

    Another solution would be to switch to the new interface of firefox preferences that will set the preferences menu in a tab:
    enter on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.preferences.inContent. Double-click it and change its value to true.

  • Since the Thunderbird 38.0 update my computer crashes whenever I start Thunderbird. CAUSE: the sounds associated with a new message notification?

    I am able to use it in Windows safe mode but that is awkward. My computer works fine in normal mode as long as I do not open Thunderbird. Is it possible to go back to the old configuration of Thunderbird. I love the program but it is not very good like that. I tried running Thunderbird in its safe mode by pressing the SHIFT key, when I started to Thunderbird, but it came not in safe mode and the computer froze.

    Wayne Mery said

    rcharlie said

    I had this problem too. He has not happened since I disabled the new message alerts (not only sounds, but the popup and tray icon). It was freezing at startup only when there are new messages so he could get when I started upward. At least one of the freezes have shown the popup in part drawn on the screen, until all of the computer does not meet all, but hold the power button.

    rcharlie, I think your problem is different. I helped someone a few hours ago with similar symptoms where helped to disable alerts. And then, we determined that alerts could be activated IF we have disabled hardware acceleration to tools | options | Advanced | in general.

    rcharlie, what it do work for you?

    Yes. Or rather, the test message, I sent with hardware accel disabled and alert activated has not crashed the computer. Will update if it crashes again.

  • receive the error message with every new open tab

    Whenever I open a new tab, I get a popup error message. I have screen shots that can be granted.

    At first, I thought it was a mistake to Java, but I've uninstalled and reinstalled Java.

    There are two error messages which read:

    [JavaScript application]
    evalInSandbox:Error: Permission denied for <https://facebook.com> create a wrapper for the object of class UnnamedClass.

    [JavaScript application]
    Error: Permission denied for <https://facebook.com> create a wrapper for the object of class UnnamedClass

    So I clicked on help > troubleshooting information and choose Reset Firefox.
    Now I get a new error message with every new tab open.

    [JavaScript application]
    Error: syntax error

    Please tell us how to do this.
    Thank you
    JudyLeeThurber

    1. In the address bar, type Subject: config and press enter. The subject: config "this might void your warranty!" warning page may appear.
    2. Click on I'll be careful, I promise!, to continue on the subject: config page.
    3. Type browser.newtab.url
    4. Double click on the first result, a new window should now display.
    5. Type of topic: newtab in the area.
    6. Click ok and load a new tab. It now works of mireille?

Maybe you are looking for