Can close the menu being hiden or override?

Generally, the close menu item will close only the current screen. I want to now that he works for leaving the game. It is possible to replace this menu item. If this is not the case, can I hide it?

Thank you very much!

You can override the makeMenu() and add a narrow menu allowing to leave your application instead of using the default menu.

And also overrire method onclose() If you want to do anything when you press ESC.

Something like:

import net.rim.device.api.ui.*;import net.rim.device.api.ui.component.*;import net.rim.device.api.ui.container.*;

public class TestScreen extends MainScreen{    public TestScreen()     {        super();                    }

    // menu item for exit the application            private MenuItem exitMenu = new MenuItem("Close",100,10)    {        public void run()        {            System.exit(0);        }          };

    protected void makeMenu(Menu menu, int instance)    {                menu.add(exitMenu);

        // default menu        //super.makeMenu(menu, instance);    }

    //it will close the current screen    public boolean onClose()    {        this.close();        return true;            }        }

Concerning

Bika

Tags: BlackBerry Developers

Similar Questions

  • How to close the menu that is opened when you click on the menu button?

    Hello

    When the user clicks the menu button, menu appears.

    Now menu is not closed & my screen behind the menu is updated due to a callback function.

    So, I want to update my menu again accordingly.

    How can I update this menu or close the menu which is open?

    Is it possible to dindane who?

    Yes... His work.

    I tried compact as well, but it did not work in multithreading where I wanted to close the menu on the response of one or two wires.

    It was necessary to aquire lock application event to close the menu in this senario.

    Thnx, it is now resolved...

  • We lose the choice to close the menu accordion initially.

    After the update. I'm not able to close the menu accordion, and I see not option close to departure. Thanks for the help.

    http://www.highestgoodclothing.com/_blog/Highest_Good_Clothing_Blog

    Before the update from the acrive tab was closed initially.

    "Close it all initially" option in the Panel of the accordion has been replaced by the new behavior that allows an accordion to be reduced in Design view. Refer to the notes of version 4.0 of Muse on the next page for more information on this and other improvements of Widget - http://helpx.adobe.com/content/help/en/muse/release-note/adobe-muse-release-notes.html

    So in your case, you just have to activate the option 'Can close all' for the accordion panel (if it is not enabled already) and close it in Design view in so she can be reduced by default on publish. This is another improvement in widget panel in this version where the Panel selected in Design view will now be selected/active when previewing, export or publish the site on Business Catalyst.

    Thank you

    Vinayak

  • Cannot close the menu copy so we can print with the Photosmart C4580

    HP Photosmart C4580 all-in-One

    By mistake, we hit the button settings label number 3.  We do not have memory installed maps.  The instructions say that this:

    Otherwise, this button opens the copy settings menu.  Our problem is that we cannot close this menu so that we can print.

    We followed a hot and cold reset reset procedures without result.  The User Guide does not mention how to close this setting.

    So, we can now use the printer.  Can someone help us please?

    Thank you very much in advance,

    Yours,

    Sky22

    As I mentioned in the first post, I tried the hot and cold nothing works reset procedures.  I finally came to my senses and remove the printer and let windows 7 install the drivers again.  Then it worked.  I should have done that right away.

  • You can close the tab email in Thunderbird?

    Is it possible to force close the primary e-mail in Thunderbird tab? I use thunderbird for the light module only and don't have no use of its obsolete e-mail options, so I would like to close this tab altogether.

    Categories are not electronic mail based on standards... There is a characteristic of the gmail mail client. They might be huge import for you, but in reality, they are totally irrelevant. So not exceeded, different from the concurrent interface. You could say lower as your seem to like it.

    I use Thunderbird because I find the indecipherable display of gmail messages. Others must like it that the add-on for Thunderbird which presents the same type of view has its followers. The folder options are just a nuisance. Using POP to stop this rot.

    So, for this close...
    «I wanted to just a simple task to close the tab email in Thunderbird»

    Three times I told you that you can't. This probably isn't technically true, as a programmer with a lot of time is probably possible, everything is possible is you are writing your own program, but I don't think you or I are programmers with some free time to waste on such a useless result. I know that I'm not.

  • How to pass all Windows messages to my address to a new e-mail address so I can close the old account?

    1. We have established a new domain and an email account for our Church and need to transmit emails arriving at our old account/email address to our new e-mail address/account.  Searched the help files but no luck.
    2. We want to transfer contacts from the old email account to our new account.  Know that we can send a blast of e-mail contacts to inform them about our new address but there are always 10% and there are those who we wouldn't be in our list of Contacts who will not get the word about the change of address, so we would like to transmit the emails that arrive automatically to the following month until that we close the old account.  Is it possible or we have to recreate our Contacts list in our new account as soon as we receive emails?
    1. We have established a new domain and an email account for our Church and need to transmit emails arriving at our old account/email address to our new e-mail address/account.  Searched the help files but no luck.
    2. We want to transfer contacts from the old email account to our new account.  Know that we can send a blast of e-mail contacts to inform them about our new address but there are always 10% and there are those who we wouldn't be in our list of Contacts who will not get the word about the change of address, so we would like to transmit the emails that arrive automatically to the following month until that we close the old account.  Is it possible or we have to recreate our Contacts list in our new account as soon as we receive emails?

    Windows Mail can't do that if you create a message rule but WinMail must be open for the rule to work. The best advice I can offer is to ask your former e-mail server if they will send messages to you.

  • Close the menu by code

    Hi all

    My app has a screenshot of this self, but this option is available in the menu. The screenshot includes the menu.

    Is it all the same closing the menu in the code?

    I tried getMenu (Menu.INSTANCE_DEFAULT) m:System.NET.Sockets.Socket.close ();

    but no joy.

    Please help - losing hair rapidly.

    Found the answer, repaint the screen

    UiApplication.getUiApplication () .repaint ();

  • Close the Menu that appears

    I have a 'A' screen with a button that when you press shoot another screen 'B' in the stack. My problem is that when I click on the button control is not immediately transfer to screen 'B '. Instead, the menu of the display 'A', which has only a single element: "Close". This menu selection calls the onClose() method, which puts an end to the application.

    My first problem is that I do not understand why the menu of the display 'A' makes its appearance when I 'B' screen in the stack. I want to transfer control to the screen 'B' and do not see the menu [for the display 'A'] appears at all.

    Help someone?

    Thank you.

    You must add the CONSUME_CLICK style for your button.

  • The use of Muse to create a website - how to create child pages so that people can see the menu?

    When I create pages child I don't see them in the menu, and I see no way for people to access, unless I do a link to the parent page.

    Hello

    Please check this thread,

    Hierarchical menus in Muse

  • My MacBook Pro with El Capitan 10.6.11 close the menu drop down. I have to turn off the power

    The closing down and options no longer work in El Capitan 10.6.11 restart on my MacBook Pro mid-2012. I have to press the power button to turn off.  When shutting down or restarting are selected, the Ribbon at the top of the screen disappears and Finder is no longer available but other aps on the bench of the accused are still available. When I restart after turning off the power, the system is back to normal until I need to close again.

    Hello

    Just in case, run disk utility.

    Open utility disk located in Applications/Utilities

    Then select the disk to boot on the left and then select the first aid tab and then click run.

    If disk utility indicates that the disc seems to be OK, you are finished. Otherwise, you must repair the disk.

  • In Firefox, 29, is there a way I can return the menu top left orange button?

    In Firefox 29, they removed the top button on the left. I was wondering if there was a way to get back to this button.

    The interface you see in Firefox 29 is a major (a first since Firefox 4) redesign of the user interface of Firefox called "Australis". We could argue about the similarity of the UI between 29 and Chrome but what good's that do? Point main is that Firefox is even more customizable than Google and more securely.

    If you don't like the new look of Australis, you can return to the display before Australis use the addon classic restaurateur theme

  • How can I close the app selector?

    I have a locking request that does its job of locking the phone. Everything works fine, except the maneuver of the app. Users are able to hold down the menu key for 2-3 seconds and the ap swirtcher will open. If you press the menu button again they will be be felt with the application menu where they can close the application.

    I was wondering how I can prevent this? I have onExposed and onOnscured as the two configuration of requestForeground, but the flexibility of the app has a higher priority than I guess. I've seen other aplications it but I know it's possible.

    On other applications when you open the app selector it closed immediately. That's what I want to do.

    I have installed am EventInjector click on the button of the escape, and it works in the Simulator. I can't get to work on my phone though. Someone at - it an idea how I can get this to work?

    Thanks for the help, I finally understand however. I had to replace the menu options to show nothing. With the menu of the road, my key injection worked perfectly. Any time my losses in the foreground app he clicks on the escape (back button) and then asked in the foreground. It seems to work perfectly now.

  • How close or minimize the menu box using Display.screenshot ()?

    Hello

    Did someone help out me in finding what way I can minimize or close the menu box while I take the screenshot of any screen?

    The problem is when I select the menu item Printscreen, the Display.Screenshot () method runs, and it takes the screenshot including the menu box that I opened for the selection of the menu-item (Printscreen).

    So, how to remove that box of Menu before you take the screenshot?

    Please answer

    Thank you.

    You might find some useful options in this thread;

    http://supportforums.BlackBerry.com/T5/Java-development/context-menu-coming-in-screenshot-by-using-D...

  • Can I put a hyperlink on the menu?

    Hello

    I'd love to put a hypertext link to an external site in my menu. Is this possible?

    Thank you!

    Anna

    Yes. Create a blank page, right-click in the plan view and "include without hyperlink" to the menu. Now, you can select the menu entry and assign a hyperlink by using the Hyperlink command in the upper command band.

  • Detect when the menu is opening and closing

    Hello

    In my application, I use the ESC key to return to the previous screen.

    The problem is when to press the MENU button, a menu appears, and it must be able to use the ESC key to close the menu (if he wants).

    So, I would detect when the menu is opened and when the menu closes, I can manage the ESC to go back screen or simply to close the menu.

    Is it possible to do this?

    Thanks in advance

    Hai

    Do not use keylistener.

    Override keyChar() in your screen and locate the ESC key.

Maybe you are looking for