Update Menu or menu items

Hello.

I can't change the behavior of the menu items.

I first create a menu with menu items x.

Later, on a particular event, I want to change a menu item n or (as a backup) I can recreate the whole menu with a new set of menu items.

What I've tried is to use Menu.deleteAll () and Menu.deleteItem (int n) and both fail to remove a menu item.

I then thought, ok, maybe that I can not change already created a menu/menu items. Maybe it's only available in makeMenu (although I have not found any such instructions). But! If I add a menu item to the menu even (even after deletion methods) the menu item gets on the menu and is displayed correctly.

Maybe we can add but can not remove existing menu items?

Now, what happens?

All I want to do is change a legend menuItem and its run() method (i.e., replace an existing menuItem).

Anyone have any ideas?

(I'm the test on jde 4.5 on Simulator 8810)

Hi, sorry for the late reply, but I closed the problem partially.

My app has a lot of States, and in some States, some menu options should be withdrawn.

It turns out that it is preferable to use MainScreen.removeMenuItem instead of Menu.DeleteAll ().

The works of the old approach, this one doesn't

Thank you for your comments and interest.

Tags: BlackBerry Developers

Similar Questions

  • What is the difference between these Update menu items?

    Hello

    I have these items to update two showing in my menu bar:

    Adobe-Updater.pngCloud-Updater.png

    Those with the Adobe logo comes to open the creative menu cloud when you click "open Updater... ». I wonder why both appear and whether the issue of the Adobe logo is supposed to update something non - CC.

    I did a new install of CC, so there should not be any inherited accession, preferences or items in library on my system.

    Thank you!

    Hi joerivera ,

    Please see the Ko: http://helpx.adobe.com/creative-cloud/kb/redundant-update-notifications.html .

    Kind regards

    Romit Sinha

  • I need to update to Photoshop, but the updates menu option is grayed out

    I am running Adobe Photoshop version 16.0.0 in an environment of Citrix Terminal Server under a creative cloud for teams of license.  This version is now obsolete and I need to update.  However when I run Photoshop and have it help menu, updates is greyed out.  I can't get it change.  I tried to install creative cloud Office, but this also does not allow me to check updates.

    Can anyone help please?

    This thing any desynchronization number may be a little confused.  If you have CC2015 with no update?

    You must get at CC2015.1.2

    I don't know how the license teams affects things, so this is a bit of guessing, but the logout and back in to the Application Manager requires to search for updates, but the new update menu item control should probably replace that.  Which brings back me to the aspect of the teams.  You have the option to open the Application Manager as an administrator?

    So, you may need to get updates directly from ProDesignTools.  Update links are at the bottom of the page

    Direct download links of Adobe CC 2015: 2015 creative cloud release | ProDesignTools

  • 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.

  • As some Menu items: Modules, Help Menu and Pocket Extension does not work after update to 17.0

    As some Menu items: Modules, Help Menu and Pocket Extension does not work after update to 17.0

    This may be caused by the Tab Mix Plus extension

    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 start safe mode window or make changes.

    You can try to install the latest Dev version of Tab Mix more if you use this extension.

    See the sticky on the forum of Tab Mix Plus:

  • Card of formulation - UPDATING features of menu items

    Hello. We would like to add a new button in the box tools (say after the 'Settings' button) in the form of wording to make the refresh rate formulation.

    The option REFRESH the item menu is available when the specification of the formulation is in EDIT mode in the TOOLS menu items section.

    We want to make this feature via a new button in the box tool. In this way the button will still be visible and will help users do not forget to REFRESH the data.

    We intend to use the point of post to add a new button. The new button should call/call existing functionality to update the spec.
    How can we use out of the box functionality to perform the REFRESH functionality?

    Thank you.

    See the Config Guide of Navigation in scalability Pack (Agile Documentation) to create a menu item in GSMNavSpec toolbuttons.

    1. in config\Extensions\SiteMap-Extensions.xml, add the following xml elements if you don't have them.

    2. in the menu item toolbuttons, add the menu Refresh void as below, which is copied from config\Reference\SiteMap\SiteMap-GSM.xml.

    3 change its menu type, order of sorting and styles as you like.

  • I want to get rid of the Bing screen, but there is no "menu at the top of the Firefox window" for me "Select tools and then select the Add-ons menu item.

    I suddenly have a 'Bing' screen when I connect on Firefox - and I want to get rid of it. The support section of Firefox says
    1 "in the menu at the top of the Firefox window, seledt tools, and then select the Add-ons menu item." - but I don't see any 'menu item' tools, or much less modules.
    2. "in the window modules, click the Extensions Panel"- but how to find the Modules window?
    3. find the Bing and extended support to search toolbar in the list and then click on disable for each of them. ' - but what and where exactly is - this?

    At the top of the screen is only an icon of Yahoo to the left and to the right of it, a search box, 'Web search', 'My Apps,' Yellow Pages,""Weather","Updates"and"Skype ". to the right of the people, there is a green cross saying "add more applications. to your toolbar"and to the right of this one kind of gear shift looking icon saying"toolbar settings ".
    So, in short, how can I get rid of the Bing screen and how to access these tools?
    Thank you.

    Versions of Firefox 3.6 + have a feature to allow the user to hide the Menu bar.

    Press the Alt key to temporarily show the Menu bar, then open view > toolbars and select menu bar, so it has a check mark.

    The F10 can also be used on most PCs to temporarily reveal the menu bar.

    https://support.Mozilla.com/en-us/KB/menu+bar+is+missing

  • dynamically create and destroy the custom menu item

    I have a standard TestStand platform that I use on multiple systems.  On some systems, I have a few sequences of calibration and I would like to have the Update menu to have the RunSequence of these sequences of calibration.  I know how to manually create these menu items, but they are no longer valid for some sequence files.  I would use the sequence SequenceFileLoad to dynamically create menu items and the SequenceFileUnload to destroy these menu items.

    I've played around with the API, but cannot determine the correct path to get to the create and destroy the custom menu items.  Does anyone know how this can be done?

    Thank you

    Matthew

    Yes, see the online help for the members of the following APIs:

    Engine.GetEditTimeToolMenuItems

    EditTimeMenuItems

    EditTimeMenuItem

    Basically, you get a collection of tool using Engine.GetEditTimeToolMenuItems () menu items and then call EditTimeMenuItems.Insert () or EditTimeMenuItems.Remove (). If you insert a you get returns an EditTimeMenuItem object on which you can change the settings.

    In addition, since it has an expression to hide items in menu tool, you need not necessarily to destroy, you can hide them instead.

    Hope this helps,

    -Doug

  • Menu items hang on the screen randomly

    I have a problem with my vista 64 machine.  The menu items to hang on the screen after being selected.  That one hangs at the time, and the same that one can suspend all day, or change at one point to the other.  As I type this "Explore" appears in a box in blue light on bottm left of the screen.  It's not too bad, sometimes a menu item will be suspended in the middle of the screen, and the only way to get rid of it is to reboot and hope that something less obnoxious block next time.  I've updated all my drivers, software and bios.  It is a processor I7 920 on Asus P6T motherboard with a nVidia 9800GT video card.

    Hello Erousculp,

    Thank you for posting.  I just looked into your question and noticed that you are using a videocard of Nvidia desktop/game.  The combination that the nvidia drivers have had some problems with Vista and this could be the root of your problem.  Video card manufacturers generally has really intend to their home desktop video cards to use in the environment of heavy graphics CAD and 3D modeling software.  Another note, it's that both your processor manufacturer and card mother manufacter have compatibility problems between their product lines, then you want to check possible BIOS updates for your motherboard.  Nephilum i7 is a very recent product range and could have issues as well unknown.  In the last year or more, I noticed an increase in stability problems when they are used together.

    Please let me know if this helps you. Zack
    Engineer Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Custom menu item at the request of Message: two questions

    I try to add a custom menu to the Blackberry message request and get two questions:

    1. When you click the custom menu, the "Application.getApplication () .requestForeground (); method call does not call the main() method of my application "DemoMI".
    2. If I changed the method of

    Application.getApplication () .requestForeground)

    TO

    ApplicationManager.getApplicationManager () .runApplication (app); Where app is the "DemoMI" application descriptor

    Will be called the main() method. However, how can I make the subject of the Message around in the method "run" for the application "com.demo.DemoApp"?  I tried to use a static variable 'mi ContactsDemoMenuItem', but I've always had "null" value when the "main()" is called.

    My environment:

    • JDE: 4.2.0
    • Feature: Pearl 8100 with OS 4.2.0
    import net.rim.device.api.system.*;
    import net.rim.device.api.ui.component.Dialog.*;
    import net.rim.blackberry.api.menuitem.*;
    import net.rim.blackberry.api.pdap.*;
    import javax.microedition.pim.*;
    import net.rim.blackberry.api.mail.Message;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    
    public final class DemoMI extends Application
    {
        private static final String ARG_LAUNCH_CONTACT_DEMO = "1";
        private static  ContactsDemoMenuItem mi;
        public static void main(String[] args)
        {
            if(args == null || args.length == 0)
            {
                DemoMI app = new DemoMI();
                app.enterEventDispatcher();
            }else
            {
                String appToLaunch = args[0];
                if(ARG_LAUNCH_CONTACT_DEMO.equals(appToLaunch))
                {
                   new com.demo.DemoApp(mi.getMessage()).enterEventDispatcher();
                }
            }
        }
    
        DemoMI()
        {
            long locationToAddMenuItem = ApplicationMenuItemRepository.MENUITEM_EMAIL_VIEW ;
            ApplicationMenuItemRepository amir = ApplicationMenuItemRepository.getInstance();
            ApplicationDescriptor app = ApplicationDescriptor.currentApplicationDescriptor();
    
            app = new ApplicationDescriptor(app, new String[]{ARG_LAUNCH_CONTACT_DEMO});
            mi = new ContactsDemoMenuItem(app);
            amir.addMenuItem(locationToAddMenuItem, mi);
            System.exit(0);
        }
    
        private static class ContactsDemoMenuItem extends ApplicationMenuItem
        {
            ApplicationDescriptor app;
            Message msg;
            ContactsDemoMenuItem(ApplicationDescriptor app)
            {
                super(20);
                this.app = app;
            }
    
            public String toString()
            {
                return "My Menu Item";
            }
    
            public Message getMessage()
            {
                return msg;
            }      
    
            public Object run(Object context)
            {
                if ( context instanceof Message )
                {
                    msg = (Message)context;
                    try
                    {
    
                        Application.getApplication.requestForeground();
                        //ApplicationManager.getApplicationManager().runApplication(app);
                    }catch(Exception e)
                    {
                        e.printStackTrace();
                    }
    
                 } else
                 {
                    throw new IllegalStateException( "Context is null, expected a Contact instance");
                 }
                 return null;
            }
        }
    }
    

    What you see is the expected behavior.  The ApplicationMenuItem runs in a different process where your application was run.  You have two options.

    You can store the subject of the Message in the RuntimeStore when the ApplicationMenuItem is called.  Your application you are undertaking could then read the subject of the Message of the RuntimeStore.

    Or you can create an application based on the drawing below:

    How to allow - a listener in the background to detect and update a GUI application
    Article number: DB-00406

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800783/How_To _...

  • How can I replace the opened in the Mail application Menu item?

    Hi all -

    I want to provide my users through the queue of mail message. I receive a message formatted and I know I can add a customized via menu item

    repository.addMenuItem (MENUITEM_MESSAGE_LIST, MyCustomMenuItem);

    but it still requires the user select MyCustomMenuItem.

    I can identify which messages are specific to my application, so I want to replace the menu item open for e-mail messages to call my manager rather than the method of 'open email message"default conditionally.

    Can anyone provide assistance in how to achieve this? Or if this is not considered a best practices approach, what are the alternatives?

    Thanks in advance.

    Dave

    I understand your point.  I think I'd in memory when I responded to your original post,

    Go back and looking at some code:

    You can get a reference to the message using MessageEvent.getMessage ().

    You can then re-evaluate the flags:

    Boolean isOpened = ((mssgFlags & Message.Flag.OPENED) == Message.Flag.OPENED);

    Then you can say 'if the update and isOpened"to determine if the message was opened.

    It seems to work for us.

    I hope this helps.

  • When clicked on a menu item is still done scroll to this part of the page but not properly noted in the menu more

    Today I opened my site in Muse to do some small updates and my head was completely broken, I have a header menu that uses the anchor points, and when clicked on a menu item is still made this part of the page-scroll but not correctly highlights the menu more.

    I also had a slideshow put in place to change each px 1100 scrolls, but who has stopped working completely.

    How did this happen without changing me anything? or I could go back to an old backup?

    It turns out all I had to do was reboot all and everything was fine, the program must just acted buggy

  • Plus all the menu items are dimmed in AE CC I cannot create a new project or start

    Hey all,.

    I'm working on a Mac mini with all specifications maximum (not the version of the server). I opened AE CC for the first time and I can't do anything except close or exit the application. All my menu items are grayed out.

    When I started it upward it tells me that I should update CUDA, so I did it and it is still not allow me to choose menu items. Help, please! O Yes, I'm running Mavericks!

    I'll be watching this thread today so let me know if you need to know more about me.

    DO NOT install Cuda, because there is not a single Mac Mini that has a compatible card NVIDIA CUDA. Installation of CUDA will be completely foul up your machine.

    Second, be careful the program names. You have opened the rendering engine of the effects after no After Effects. Looks like you're very new. Please, start here: basic workflow. If you do not take the time to go through basic training you'll be completely frustrated with AE and assume that it is working properly.

  • Why the menu items change automatically?

    As I'm changed some stuff around on my test Business Catalyst site, I noticed that if I change the URL of a given page (I've changed the 'Shop' page to / sponsor), the menu item URL has not changed automatically. I don't even know the name of it has changed (I can understand as a 'function'). I thought it was a reason to use a CMS like this, that a lot of things like link exchange occur automatically. I'm sure other CMS like Drupal and Joomla do this automatically. There are chances that this will change in the future? Or maybe there is a reason why it's like that I forget?

    Thank you!

    Hi umiwangu,

    In my experience with BC as well as other systems, it is important to note that the pages and menu items are separated from each other.

    When a user creates a page it is not automatically added to a menu. Similarly, when a user changes the URL of a page that has been added to a menu, the menu item URL in question not is not updated automatically.

    So, if you changed a URL of the page that ends by "/ shop" to "/ sponsor ' you should be able to easily view this new URL in a browser. However, if you want the menu item that is linked to the old URL to reflect the new URL, then you will need to change the URL of item of the menu so they can talk to each other in the future.

    Yes, it's an extra step (crucial) update your menu items, but (in my experience) URL decisions are not something that is changed frequently - especially when it comes to SEO.

    In any case, I hope it helps! -Alex

    PS - If you haven't already, you can check zero to hero of gurus of the BC. They put together a huge set of training Sessions of BC (FREE) that are amazing!

  • Hide the menu item

    Hello

    I can't disable an element of a menu item, but it's a way to completely hide the option in a menu?

    It is any component menu up there with this feature?

    Thank you

    Or you can have a collection of ArrayCollection which manipulate you using the methods in the ArrayCollection collection (addItem, removeItem, etc.), to have the correct items for the type of connection.  If your dataProvider is something that implements ICollectionView, mx:Menu listen to collection change events (CollectionEvents) and update the menu accordingly.

    You can also change the dataProvider.

Maybe you are looking for