How to avoid the default menu items?

All of hell

I'm developing an app for BlackBerry handheld.  I add menu items that are specific to the different screens of my application by substituting the makeMenu (.) method. I DON'T want to include default menu items...

Select Mode
Page view
To find
Copy
Call 12093...
12093 SMS...
12093 MMS...
Add to Contacts

Now I do menu.deleteAll () in the first line of the makeMenu (.) method. Suggest me if this isn't the right way?

It deletes all the elements default menu above.

Now, in the application, the specific menu item get highlighted based on the next action of logic, that I do a menu.setDefault (menuItem).

But for the instance when some contact number is selected on the screen (usually 'call' option get highlighted on the menu, but here we have removed) the highlight of the menu according to my works item IS NOT pathological and it always shows the menu first point highlighted.

I suspect it might be because the default menu items have been added (by program then deleted). That's why I decided to override the onMenu (.) method where I'll call makeMenu (...) to the new instance of the Menu (that are not default menu items), so I'll see the menu using menu.show () and then return true.

Now by the fix above, the highlight of the menu on my terms item works fine regardless of some contact number is highlighted on the screen or not, BUT the menu is displayed on the upper right and not on the bottom left where it should be.

This approach is correct, or there is a better way to approach this?

Thank you

Mukesh

OK guys... I had the problem!

The problem is that if any time a highlighted menu item is removed (as in our case, menu item 'Call' is deleted by menu.deleteAll (()) the priority agenda menu get highlighted. This is just the reason why the first menu item get highlighted if the phone number is selected.

To fix this, I highlight the appropriate menu option by setting up priority for her.

Tags: BlackBerry Developers

Similar Questions

  • How to list the PHONE menu items

    Hello.

    I am building an app that injects the menu and the wheel to the up and down events to access elements of the PHONE menu.

    To be precise, in appeal, at any given time my application needs to choose an item from this menu.

    So I inject the MENU, then the Dial-UP (for a step or two), then ENTER.

    Now, I need to be sure that I pressed the right menu item.

    This is why I would like the ApplicationMenuItemRepository.MENUITEM_PHONE to the list

    Is it possible to do?

    There is no method that returns the menu of a BlackBerry application or the item currently selected in the menu.

  • How to disable the browser menu items?

    IM using the browser session to display images, but its menu has many elements that I don't need. Is there a way to remove these menu items in the menu of the browser?

    BrowserSession b = Browser.getDefaultSession();
    b.displayPage("file:///" + filePath);
    

    There is unfortunately no way to remove items from menu standard browser.

    There is a way to add additional menu items, but there is no way to delete those that already exist.

  • How to create the active Menu item

    I am trying to create a menu with this code item:


  • How not to lose by default menu items?

    I have a screen that extends from screen and have created my own menu items. Now that the menu items I created appear in the menu. I would also like some of the default items, especially "switching applications", appears in the menu.

    How to include these default menu items?

    Thank you

    call super.makeMenu)

  • How to change the default (Windows 7) painting 'Save as type' JPG (from PNG) format when recording using the * only * the keyboard?

    This is the 2nd time this same question, the 1st time that I was given an irrelevant answer which was not helpful at all. Please take the time to read and understand what I need to before you answer.

    I just need to learn how to change the default PNG to JPG, so every time I save a screenshot using (only) the keyboard, it will already be showing JPG as the "Save as type". I am sure that it requires an edit registry so just point me in the right direction and guide me on how to do it, that's all I need.

    To help you understand my dilemma, I take a lot of screenshots and Ctrl + V paste in Paint almost daily. Since my physical disability in my arms causing me pain and discomfort when I use the mouse, I avoid using the mouse I use the shortcuts as much as possible to help reduce the constant pain, I'm still in my right arm when using the mouse. I hope I have explained well enough details.

    If it's in the wrong place, please move to a better place.

    Thank you

    Lee

    I don't know of any registry value, but you can use the key sequence to "Save as jpg.

    ALT

    F

    V

    J

    The F key may be pressed simultaneously with the ALT key or after him.

    You can reduce the number of keys to just ALT plus a digital key by using the following, adapted from one method described HERE.   Setup is much easier with a mouse, but can be done using the keyboard only.  I showed you the controls and mouse shortcuts keyboard to add an icon "" Save as JPG"to the Quick Access toolbar.

    Open Paint

    Mouse Keyboard equivalent
    Click on the file Menu (upper-left) Press ALT + F to open the file Menu
    Hover mouse on ' Save as ' to open the list of file types Press V to view the list of file types
    Right click on JPG to open the context menu Use the TAB or down arrow key to select JPG and then press SHIFT + F10 to open the context menu
    Click "add to quick access toolbar. Press A to "add to the Quick Access toolbar.

    At this point, your installation is complete.

    With open Paint, press the ALT key .  This will display the keys associated with various actions.  In my case, "" Save as JPG"icon that has been added to the Quick Access toolbar was the fifth icon (after save, undo, redo and print).  So, to "Save as JPG," I would press ALT+5 (even once, you can press 5 either with or after you press the ALT key).

  • 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

  • Getting context object null when using the custom menu item.

    Hi all

    I implemented a sample application to add menu item custom to the list of messages and we test this build on 9000 os 5.0.0.41 Blackberryy 1

    On BB 9000, we have 2 message inbox, A like Blackberry by default message inbox and B as long as the Inbox for the e-mail account, I have set up on BB 900.
    I implemented the menu custom application to add menu on the message list option.
    I see this option on both my inbox, the question that I am facing is when I click on the menu item by selecting the email in the message of default A Blackberry inbox I can get the context object were like when I click on the same message next to the Inbox B I'm always get the context as a NULL object.

    Below is the code I used to add the custom menu item.

    Public Shared Sub main (String [] args)
    {
    If (args! = null & args.length > 0) {}
    call from another entry point. Add menu items mark as Spam and mark as suspects.
    {if(args[0].) (Equals ("GUI"))}
    try {}
                            
    create menu items.

    MyMenu ApplicationMenuItem = new EmailFile();
    Add the menu item in the list view and send by e-mail.
    Amir ApplicationMenuItemRepository = ApplicationMenuItemRepository.getInstance ();
    amir.addMenuItem (ApplicationMenuItemRepository.MENUITEM_MESSAGE_LIST, mymenu);
    } catch (Exception e) {}
    Utility.debugLog (try (), CLASSNAME, 'hand', Utility.EXCEPTION_INFO);
    System.out.println("Error:"+e.ToString());)
    }
    } else {}
    show on the application of spam...
    AppMain _theApp = new AppMain();
    _theApp.enterEventDispatcher ();
    }
    } else {}
    show on the application of spam...
    AppMain _theApp = new AppMain();
    _theApp.enterEventDispatcher ();
    }
    }

    Can we know what is the problem in my code or something I'm missing.

    Thanks in advance.

    Navneet Gupta.

    application menu items have been bugged for ages. There is nothing you can do except change your workflow. in some cases, you can recover the app screen and trying to extract something of these fields, but becomes more difficult in the new OS versions because of custom fields used by rim.

  • How to customize the default user profile in Windows 7?

    I changed all my preferences for how I want the start menu, background etc to look at, and I wish that every new user to have the same look. Can I change the default user profile?

    Can of course. Try this:
    1. turn your environment exactly as you wish.
    2. restart the computer in Mode safe.
    3. log on as an administrator.
    4 rename the c:\Users\Default user c:\Users\Default User.org folder
    5. rename the folder c:\Users\Phil c:\Users\Default user (assuming that "Phil" matches your profile folder).
    6. give everyone read access to c:\Users\Default user
    7. create a new account, and then sign under this account to test.

  • Get the current menu item selected

    Hello

    I use Jdeveloper 11.1.2.3.0

    I want to set the property collapse of the separator group based on the selected menu item by using the expression language.

    How to get the current selected menu item.

    Best regards

    Haytham Talha

    Hello

    Here is an example using setPropertyListener to set the selected item and use it to collapse of panelSplitter:

    
         
              
                   
             
            
              
           
         
                   
    
    
         
              
         
         
              
         
    
    

    Jean Lou

  • How to avoid the glossy look and brilliant nostrils?

    I just built my first character of fuse and when I import into Photoshop, its nostrils are incandescent - as if the light shines through the back of his head!

    This fuse:

    Screen Shot 2016-01-17 at 04.27.53.png

    Becomes this in Photoshop:

    Screen Shot 2016-01-17 at 04.47.21.png

    I use a brush to set the nostrils, but have no idea how fix eye - of the suggestions?

    Even better - any ideas on how to avoid the glossy look and glowing nostrils?

    Thank you very much
    Malcolm

    Hey, Malcolm.

    Best way to explain what basically rendering 3D correctly really takes a lot of time, haha.  So that you may be able to work with the real-time 3D model and make changes quickly, we use two different rendering methods.

    There is an "Interactive" mode which is not like the beautiful light/shade, but is very fast - and that's what you see when you interact with the default template.

    Then, there is a mode "Raytraced" which is much more advanced calculations and stuff to give you a proper lighting / shadow.  Raytraced rendered may take time if so we can not use it all the time.

    In order to get the lights/shadows appropriate you need to perform a path Ray would make on the document.  Best way to do this:

    • Select your 3D layer in the layers panel
    • Make a selection in the drawing area to the area that you want to make (I recommend to test rendering of area to check the lighting/shadows before committing to make the whole layer).
    • Push the button is rendered at the bottom of the properties panel (it looks like a cube in a rectangle box, right next to the delete icon).

    There are other things that you must do if you want to get the best image search quality such as the addition of secondary lights!  You can add more lights in the 3D Panel using the small icon of light at the bottom.  Have 2-3 stage lights and adjusting their colors can make a big difference with the Assembly of your character in the scene.  Here is a small image for some comparisons:

    You can see the image with two lights a look much more realistic lighting and shadows and raytraced of one and two versions are much nicer and cleaner!

    Hope that helps!

  • How to change the default "/" shortcut (select none in the shade of color) to something different? Where can I find this in keyboard shortcuts?

    How to change the default "/" shortcut (select 'none' in the shade of color) to something different? Where can I find this in keyboard shortcuts?

    Any ideas?

    In the Tools menu:

    "Apply no color."

  • Drop menus appear on your mouse on the main Menu items?

    Sorry if this seems obvious, but I am new to Muse. After viewing all the tutorials I can't display the drop down menus on overview of the main menu items (to display submenu choice on the main categories page).

    There must be an easy way to do it. Can anyone offer advice?

    Thanks in advance.

    Hello

    If you have subpages created for top level pages and put you in a menu, while also changing the "Menu Type" to "All the Pages" in the menus, it should appear the submenus when you hover over the top level menu items. Here's a little video that I created to show you how it works: http://screencast.com/t/jEAhCpL8x

    I hope this helps.

    See you soon

    Parikshit

  • Redirect the user to the different menu item

    Hi guys,.

    JHeadstart 11.1.1.3.35

    I use the JhsTree menu structure. One of my menu items is a wizard that goes directly to the insert mode, so at the end of the wizard, I redirect the user to a different group (menu item). The problem is that while the new menu page is displayed to the user, the previous menu item (Assistant menu) is still selected, so that if you try and you reenter the Wizard menu item, nothing happens as the structure of the menu and the page are out of sync (and the menu believes that you are already on the page of the wizard even if you're not)

    My question is, also the creation of a navigation to a different menu item rule, how can I programmatically change the selected menu item?

    See you soon,.
    Brent

    Brent,

    No, you can remove these goods safely.

    Steven Davelaar,
    JHeadstart team.

  • How to disable the icon menu iin Forms 6i

    Hello world
    I would like to know how can I disable the menu of the icon in forms 6i, who appears every time that you run a form that has all the icons associated with the backup, the exit, then save, etc.

    Thanks in advance!

    The default menu is by DEFAULT & SMARTBAR (Module of Menu module-level property). If you remove SMARTBAR, you will have no smartbar at all.

    Published by: InoL on March 31, 2011 11:55

Maybe you are looking for