Remove the Menu item

Hello

I add a menu item in the MENUITEM_SYSTEM and then I would remove it, but even I use ApplicationMenuItemRepository.getInstance ()... removeMenuItem (ApplicationMenuItemRepository.

MENUITEM_SYSTEM, myMenuItem); the menu item, always in the list of the menu. Anyone know how to remove it?

Thank you

Make sure it is the correct menu item you have added (check the object id).

You can use the runtime store to ensure this on multiple instances / (as an autostart entry point)

Tags: BlackBerry Developers

Similar Questions

  • Disable or remove the menu item 'Print the Pages' in reader

    Hello

    I would like to delete (or disable) the menu item print Pages in adobe reader

    See the attachment for the location of the menu item

    Thank you

    Mike

    Is not possible.

  • Error 1162 occurring when you remove the menu item

    I am creating menus personalized in the MenuBar of a VI in LabVIEW 2010 and always 1162 error when I try to delete the entry "Rename the folder of screws" on the file menu. I can remove the entire menu and add it back to accomplish the removal, but I intend to keep some of the functions of the application level such as ' save under... ». Anyone has an idea why this happens? I tried to delete by name, (the two app_Rename the screw folder and rename folders of screws) and by number. Neither work. I have attached a screenshot of the VI and the error.

    Lenovo Think Center (core i7) M series computer

    under Windows XP

    Thanks for any help,

    Chuck

    I think that it is a tag mismatch too. Try to run Get Menu Item Info primitive by specyfing tag item 'app_File', then make sure that the output array "tags submenu" includes a string that you assign to remove.

  • How to remove the menu display keyboard?

    Hello..

    I designed a screen with the orientation of the device. When the user showing the virtual keayboard, my design of the screen gets collapsed. There is no editfields in my screen. So I want to remove the menu "show keyboard" from the menu list.  I tried NO_SYSTEM_MENU_ITEMS in the screen. But it deletes the menu "Switch application" also. I want to just remove the "Show keyboard" only... Please help me...

    Thank you...

    Hi razebond,

    The virtual keyboard, in particular, to get a handle on virtual keyboard designated screen as shown in the following document:

    http://docs.BlackBerry.com/en/developers/deliverables/13222/Displaying_touch_screen_keyboard_647781 _...

    From there, you can call VirtualKeyboard.setVisibility (VirtualKeyboard.HIDE_FORCE) to disable the virtual keyboard; in turn, this will remove the menu item.

    Alternatively, you can override the method makeMenu() of the screen and use a loop in collaboration with Menu.getsize () to iterate through the items in your Menu and find the item with the text display keyboard. Once found, you can call Menu.deleteItem (int position) on the location of the item display keyboard .

    This deletion would better follow a call to super.makeMenu (menu Menu, int for example) to ensure that the Menu has already been filled.

    In your case, the recommendation would be to completely disable the virtual keyboard as it is a much cleaner approach.

    Erik Oros

    BlackBerry Development Advisor

  • Where is the menu item "update iTunes game"?

    I am on iTunes 12.4 (Mac) and the menu item "Update of iTunes game" has disappeared from this version. The music library on my Macbook Pro is not sync to the cloud to be available on my iPhone, even if both are signed on the same account and my game subscription is current/paid.

    Thank you, Apple, to make things more difficult that they'll be removing the menu option to force a sync

    Now, how do I just that... force my laptop to update the game?

    The button 'Update iTunes game' old responsibility now 'Updated iCloud music library' file/library.

  • Delete or remove application menu item switch

    Hello

    I use blackberry api 4.3 for my application and I tested this application in my simulators(9500/9530) api 4.7.

    I don't want to remove all of the default menus (like showkeyboard or hide keyboard, see the symbols, close, switch application).

    I want to delete or remove only switchapplication of the menu item. So is it possible then you can you please give some more

    information about this problem.

    Thank you

    MINDUS

    Sorry, my mistake. You're right, you do not see the menu system default items in makeMenu. Instead, you override getMenu, call super.getMenu () and then search & delete. The ordinal is 268501000 (it's a hack, because this number may change).

    I think you should resolve your question a little differently. I suggest that you add your own Application Switch menu only if the OS does not provide its own, as the point provided operating system will work better.

  • the menu item run method not called

    Eclipse SDK Version: 3.4.1

    BlackBerry JDE plugin for Eclipse Version: 1.0.0.50

    BlackBerry JDE component package Version: 4.5.0.14

    I added a menu item to the contacts list. I would like to get the context when the user clicks the menu item, but the run method is not entered. When the user clicks the item in the menu the main routine is entered with correct arguments. Should not called run with the context method? No exception is thrown.

     

    Import net.rim.blackberry.api.menuitem.ApplicationMenuItem;
    Import net.rim.blackberry.api.menuitem.ApplicationMenuItemRepository;
    Import net.rim.device.api.system.Application;
    Import net.rim.device.api.system.ApplicationDescriptor;

    SerializableAttribute public class BwMain extends Application {}
    private static final long APP_ID = 0xf46f5a7867d69ff0L;
    private static final String ARG_LAUNCH_BW = "1";

    public BwMain() {}
    long menuItemLocation = ApplicationMenuItemRepository.MENUITEM_ADDRESSBOOK_LIST;
    ContactsBwMenuItem menuItem = new ContactsBwMenuItem();
    ToolBarMenuButton.AddMenuItem (menuItemLocation, ARG_LAUNCH_BW, menuItem);
    System.Exit (0);
    }

    Public Shared Sub main (String [] args) {}
    If (args == null | args.length == 0) {}
    BwMain bwMain = new BwMain();
    bwMain.enterEventDispatcher ();
    }
    else {}
    System.out.println ("App launched from the menu");
    }
    }

    private public static Sub ToolBarMenuButton.AddMenuItem (long location, String argOfAppl, ApplicationMenuItem appMenuItem) {}
    Amir ApplicationMenuItemRepository = ApplicationMenuItemRepository.getInstance ();
    ApplicationDescriptor app = ApplicationDescriptor.currentApplicationDescriptor ();
    app = new ApplicationDescriptor (app, new String [] {ARG_LAUNCH_BW});
    amir.addMenuItem (location, appMenuItem, app);
    }

    private static class ContactsBwMenuItem extends ApplicationMenuItem {}
    {ContactsBwMenuItem()}
    Super (20);
    }

    public String toString() {}
    return "PC connection";
    }

    public Object execute (object context) {}
    try {}
    System.out.println ("input run method");
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    Returns a null value.
    }
    }
    }

    You call system.exit() in the Builder before entering the EventDispatcher. I'm guessing that you add the menu item, but leave the application, and when the menu item is called it is more a reference to the context of the application and decides not to continue. The menu item will not remove itself when the application closes.

  • No space under the menu item

    During a flight over a menu item, the item becomes red.  However, you can still see a bit of the yellow background along the bottom.  Can someone tell me what I need to trouble getting the red box to fill the space?  Thank you.

    menuBar.jpg

    @charset "UTF-8";

    / * Sections - version 0.6 - Pre - Release Spry 1.6.1 * /.

    / * Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */

    /*******************************************************************************

    The AVAILABLE INFORMATION: Describes the box model, positioning, the order

    *******************************************************************************/

    / * The outermost container for the menu bar, an area of width auto without margin or padding * /.

    UL. MenuBarHorizontal

    {

    margin: 0;

    padding: 0;

    list-style-type: none;

    cursor: default;

    Width: 960px;

    Police: bold;

    }

    / * Value of the menu bar active with this class, currently the definition of z-index to accommodate IE rendering bugs: http://therealcrisp.xs4all.nl/Meuk/IE-zindexbug.html */

    UL. MenuBarActive

    {

    z-index: 1000;

    }

    / * Menu item containers, position of children relative to this container and are a fixed width * /.

    UL. MenuBarHorizontal li

    {

    margin: 0;

    padding: 0;

    list-style-type: none;

    do-size: 100%;

    position: relative;

    text-align: inherit;

    cursor: pointer;

    Width: 160px;

    float: left;

    border: 0;

    }

    / * Submenus should appear under their parent (top: 0) with a higher z-index, but they are first the left side of the screen (-1000em) * /.

    UL. MenuBarHorizontal ul

    {

    margin: 0;

    padding: 0;

    list-style-type: none;

    do-size: 100%;

    z index: 1020;

    cursor: default;

    Width: 160px;

    position: absolute;

    left:-1000em;

    }

    / * Submenu that shows with the designation of the class MenuBarSubmenuVisible, we put the car left so it happens on the screen below its parent menu item * /.

    UL. MenuBarHorizontal ul. MenuBarSubmenuVisible

    {

    left: auto;

    text-align: left;

    }

    / * Container of menu items are same fixed width parent * /.

    UL. MenuBarHorizontal ul li

    {

    Width: 160px;

    }

    / * Submenu that shows with the designation of the class MenuBarSubmenuVisible, we have left to 0, it is on the screen * /.

    UL. MenuBarHorizontal ul. MenuBarSubmenuVisible ul. MenuBarSubmenuVisible

    {

    left: auto;

    top: 0;

    }

    / * Menu items are a light grey block with padding and no text decoration * /.

    UL. MenuBarHorizontal a

    {

    display: block;

    cursor: pointer;

    background-color: #f6ead6;

    Padding: 0.5em 0.75em;

    Color: #333;

    text-decoration: none;

    }

    / Components menu that have mouse over or focus have a blue background and white text * /.

    UL. MenuBarHorizontal a: hover, ul. MenuBarHorizontal a: focus

    {

    background-color: #80290e;

    color: #FFF;

    }

    / * Menu items that are opened with the submenus are on MenuBarItemHover with a blue background and white text * /.

    UL. MenuBarHorizontal a.MenuBarItemHover, ul. MenuBarHorizontal a.MenuBarItemSubmenuHover, ul. MenuBarHorizontal a.MenuBarSubmenuVisible

    {

    background-color: #80290e;

    color: #FFF;

    }

    /*******************************************************************************

    Submenu INDICATION: styles if there is a submenu in a given category

    *******************************************************************************/

    / * Menu items that have a submenu have the MenuBarItemSubmenu class designation and are set to use a positioned background the far left (95%) and vertically centered image (50%) * /.

    UL. MenuBarHorizontal a.MenuBarItemSubmenu

    {

    background-image: url (SpryMenuBarDown.gif);

    background-repeat: no-repeat;

    background-position: 50 95%;

    }

    / * Menu items that have a submenu have the MenuBarItemSubmenu class designation and are set to use a positioned background the far left (95%) and vertically centered image (50%) * /.

    UL. MenuBarHorizontal ul a.MenuBarItemSubmenu

    {

    background-image: url (SpryMenuBarRight.gif);

    background-repeat: no-repeat;

    background-position: 50 95%;

    }

    / * Menu items that are opened with the submenus have the designation of the MenuBarItemSubmenuHover class and are set to use a background image "hover" positioned on the far left (95%) and centered vertically (50%) * /.

    UL. MenuBarHorizontal a.MenuBarItemSubmenuHover

    {

    background-image: url (SpryMenuBarDownHover.gif);

    background-repeat: no-repeat;

    background-position: 50 95%;

    }

    / * Menu items that are opened with the submenus have the designation of the MenuBarItemSubmenuHover class and are set to use a background image "hover" positioned on the far left (95%) and centered vertically (50%) * /.

    UL. MenuBarHorizontal ul a.MenuBarItemSubmenuHover

    {

    background-image: url (SpryMenuBarRightHover.gif);

    background-repeat: no-repeat;

    background-position: 50 95%;

    }

    /*******************************************************************************

    BROWSER HACKS: hacks below should not be changed, unless you are an expert

    *******************************************************************************/

    / * HACK FOR IE: to ensure that sub menus show above form controls, underpin us each submenu with an iframe * /.

    UL. MenuBarHorizontal iframe

    {

    position: absolute;

    z index: 1010;

    Filter:alpha(opacity:0.1);

    }

    / * HACK FOR IE: to stabilize the appearance of the menu items. the slash in the float is to keep IE 5.0 analysis * /.

    @media screen, projection

    {

    UL. MenuBarHorizontal li. MenuBarItemIE

    {

    display: inline;

    f\loat: right.

    Background: #FFF;

    }

    }

    Looks like it was just a little minor additional coding. Remove the height of line here. Seems to fix for me.

    a: hover, a: active, a: {emphasis

        line-height: 1.2;

    text-decoration: none;

    }

  • Messages arrive, but the "Inbox" or any other folder open even if the content still there (and almost all the menu items do not work)!

    Using last Thunderbird on Windows 7. Had problems with the operating system and had to use a system restore. When I opened TB, it displays the folders in the left pane, but the credits of "Thunderbird Mail-...» "and the 3 topics: E-mail; Accounts; and advanced features. None of the files would open. I used the "Search messages" function and has been able to show existing and new messages in the 'Inbox '. Also wanted to know if files are always in my 'profile'... and they were all there where they should be. (And almost all the menu items are disabled).
    I wonder if I need to reinstall Thunderbird... maybe the OS issues this morning - and restore - have corrupted or damaged key elements of the program?
    Thank you...

    System Restore is not always a very good thing for applications.

    Reinstall is unlikely to help. But if your accounts are all imap and that you do not have a lot of other data (address book, for example) in Thunderbird, you could start from scratch.

    But before that, you should try Thunderbird started in SafeMode https://support.mozilla.org/en-US/kb/safe-mode-thunderbird

  • What is the menu item "Bring everything to the front ', and how to use it?

    What is the menu item "Bring everything to the front ', and how to use it?

    It's a selection in the window menu and means to bring all open windows of this application at the front and push all the windows open for other applications behind. This makes access to the easiest application windows. However, if you don't have that one window open in an application, then the menuitem does nothing.

  • remove the menu bar on the secondary monitor

    We use 2 monitors. We have upgraded to El Capitan and must be able to remove the menu bar on the top of the secondary computer.

    How can I do this?

    its been a while but it might be:

     > System Preferences > Mission Control

    turn on "screens have separate workspaces.

    and then disconnect you and back in.

  • How to remove the menu bar of the last update of itunes?

    The little square that used to appear on the top, isn't there anymore, so I can't go there to remove the menu bar that appears under the player. Before the update, the menu and the options were in a little square on top (left) and you could turn on and turn off the menu bar there, but now that I updated Itunes, that square doesn't appear anymore, and the menu bar just stays there. I tried everything to remove it but I don't know how. It kinda bugs me seeing the menu bar there since i'm used to just have it in that little square on top.

    Can you please take a screenshot, using shift + command + 4 (the cursor will turn into crosshairs), to draw a rectangle around what say you all?  I can't follow what you describe.

  • Disable the menu item in the third party application (such as Photoshop)

    Please suggest me to disable the menu item in the third party application (such as Photoshop).

    Hello

    I suggest you to send your query to the following link:

    Photoshop Help Center: http://www.adobe.com/support/photoshop/

    Hope this information is useful.

  • Add the Menu item to default custom Blackberry file browser

    Hello

    I try to add the Menu item by default Blackberry file browser.

    I want to add the menu item 'PRINT' files. It is when I browse through the media-> Explore-> photo, we get a list of images and when clicked on the Menu. I expect the element menu to print it.

    I use ApplicationMenuItemRepository to achieve this. And the documentation says.

    MENUITEM_FILE_EXPLORER
              ApplicationMenuIteminstances registered with this ID appear when the file Explorer application is running.

    MENUITEM_FILE_EXPLORER_BROWSE
              ApplicationMenuIteminstances registered with this ID appear when a user uses the Windows Explorer application to browse files and folders.

    MENUITEM_FILE_EXPLORER_ITEM
              ApplicationMenuIteminstances registered with this ID appear when a user uses the file Explorer application to open a file.

    Whence this Explorer of files mentioned in the CIHI means. I added the Menu item in the browser, and I could see the IMPRESSION here. But I don't know where this IMPRESSION would be visible IF we add the menu item to one of them.

    Thanks in advance.

    Provision ApplicationDescriptor solved my problem.

  • Add the menu item to app mail as the mail message?

    Hello

    I know how to add menu items in the mail application, but can I add one, according to the mail message? I want to send a single something in an email and after that one of my applications.

    Is it possible to do? Perhaps a listener?

    Thank you

    Matthias

    Hello Matthias.

    Well, if I understand your message, it's that - you send mail with unique label or message (something unique added with the text of the message) and you want to add the menu item when a user opens the message.

    According to my understanding - I have a solution.

    We have a listener "VeiwExtendedListener", that provide notifications for new, open, close, reply, and forward.

    You can implement this listener and to open(), you get the instance of the message object, which is open.  With this object message get the content of the message, locate the tag unique in the text of the message, if it is in the message, and then add your menu item.

    I hope this will help

    Good luck

    -Nidhi

Maybe you are looking for