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)

Tags: BlackBerry Developers

Similar Questions

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

  • How to use the script "click menu item" command on a menu item for an application that runs under another user?

    Hey everyone, quick question...

    I am trying to run this script:

    say application "System events".

    say process of "iTunes."

    click on menu item "Start Station" from the menu 'Song' to menu bar item 'Song' in the menu bar 1

    end say

    end say



    The idea behind this is to start a song selected currently playing station. I know, it's not hard to do it manually, but I want to be able to do it without having to call the iTunes app to the front. Now, this script works for my own iTunes app, but I have a second instance of iTunes connecting the second user on my computer at home (User2), with its own separate library and account and all. script I have works fine for an instance of iTunes under my user account, but I can't figure out how to specify which instance of iTunes, I'd like the script to work on.




    I want to emphasize as an FYI that i use.


    the shell script "connection f User2 /Applications/iTunes.app/Contents/MacOS/iTunes > & - 2 > & - &" with administrator privileges

    -to open my second instance of iTunes as User2



    is there a way to change the "process"iTunes"to say" something like 'process 'unix ID' say' and have the ID for each respective instance of iTunes unix?


    Let me know if I do not make sense... Thanks in advance to anyone who can help






    You can target a process of application using various properties of system events, for example:

    tell application "System Events"
      tell first item of (get application processes whose unix id is 15174) -- or whatever id
        activate --> needed when using GUI scripting
        get properties
      end tell
    end tell
    
  • Can manage us the Application Switch default menu item event?

    Hello

    I want to do a specific action on the Application Switch (supplied default OS) menu, click point, is it possible? If

    Yes, please tell me how?

    I searched a few listener to be implemented for this purpose, but found nothing.

    Note that I use BlackBerry API 4.3 to develop my application; But if you have any suggestions for superior versions can also provide us with.

    Thank you

    MINDUS

    OP has opened a new Thread with a similar, but more complete question.  I suggest that this discussion moves on this Thread.  See:

    http://supportforums.BlackBerry.com/T5/Java-development/can-we-handle-default-menu-key-click-for-SWI...

  • How can we add a new menu item in the file Menu?

    Hello

    I want to create the menu item on the file Menu, I want to create a new menu item, just after the item "save under...". ». Is this possible with SDK?

    Thanks in advance

    Farida kaid

    You can file a new menuitem in any "menu group" defined by the Illustrator. If you look at AIMenuGroups.h, you will find the names of various groups of menuitems. There are two that might be what you want: kSaveForMenuGroup & kSaveMenuGroup. I can't remember how much control you have within a group, but it would at least allow you to get close enough.

  • How to disable contextual right click menu items.

    Hello

    I am disable some menu items when opening my pdf application.  However, the same menu items are enabled in right click menu popup pop up anywhere in the document.  Can someone let me know how to disable the specific menu items in the right click menu? Also, is there is it possible to disable the whole right click menu shit back in my Pdf?

    Yes, if you know the names of the menus AND they are beyond the real "arise", then you can indeed use them the same way.

  • How can I move a single menu item? Whatever i, when I try to move a menu item, the entire menu will follow after.

    I kind of need quick help, is possible to do or what I need to do each button manually? I've looked everywhere but I can't find a way to do it.

    You can use the text panel and adjust the spacing, indent, etc.. As an alternative, you can create menu manual or go to the State of the links buttons where the design model requires menu items at different locations on the page.

    Thank you

    Sanjit

  • How to run the "Research & Editor" Menu item in the java script, VBA

    Hello

    I am currently trying to access the method to control adobe acrobat (research and editorial) menu items via script using "MenuItemExecute.

    I can call/display menu simple by using the following command:

    Dim acroAppObj As Acrobat.AcroApp

    Set acroAppObj = CreateObject ("AcroExch.App")

    acroAppObj.MenuItemExecute ("ShowHideToolbarRedaction")

    Now my concern is to actively control the search method. I was able to get the information about the available menu names and function:

    [cName:RedactionToolsItem, oChildren:]
    [
    [cName:Annots:Tool:RedactMenuItem],
    [cName:Annots:Tool:MarkPageRangeMenuItem],
    [cName:Annots:Tool:ApplyRedactionsMenuItem],
    [cName:Annots:Tool:RedactToolPropsMenuItem],
    [cName:Annots:Tool:SearchRedactMenuItem],
    [cName:RedactionSeparator],
    [cName:RedactionMainToolBar]
    ]

    But I must admit that I can't find the syntax/argument to call "SearchRedactMenuItem".

    Any help?

    You say that you could "get info". Is that mean that you try to do it without using the Acrobat SDK documentation?

  • Y at - it a video tutorial that shows how to manually assign pages to menu items?

    I have a need to build two separate menus. To do this, I need to be able to manually assign the pages in the menu. Thank you

    Here's a tutorial on adding a horizontal manual menu widget that should help - http://www.adobekb.com/building_your_first_website_pt07.html#addingmanual.

    Basically, you just need to switch to a type of menu manual via the Menu options, select the menu item and link/change sound label. You add several menu items to the menu by pressing the symbol that appears when a menu item is selected.

    Thank you

    Vinayak

  • How about an app or a menu item to block annoying Reroute?

    I continue to divert to a Web page asking me to install an upgrade to my flash drive. I know it it's a malware Distributor. How can I block this site! It's reactiveplayer.com. He wants to automatically load a malware program that is supposed to be adobe Flash. It is an automatic charger of malware! I need the app, the add-on or extension to block these websites to ever appear on my computer again.

    https://addons.Mozilla.org/Firefox/downloads/latest/426841/addon-426841-latest as

    Moderator broke link

    First check that your addon ads move is not any type of malware, make sure that you need and it does its job. To remove the ads, I personally recommend Adblock Plus.
    You can also report unsecure site through menu-> site report item.
    There is no such thing as a blacklist Web pages in Firefox (which you can use for example. ( this plugin to do).
    Reroute blocking would result in irritating problems with many Web sites.

  • How do I programmatically signal a menu item?

    I have a file menu in my VI and an event handler to handle certain menu selections. There are some things (for example, run and stop) which cannot be done by any other means.

    I implement a popup that I want to have a stop button, and I want the structure of the event which handles my menu selections that will be triggered by clicking on the stop button. How can I "click" a selection of menu programmatically?

    I guess what I want is possible by adding a sort of variables but I would rather just keep it simple and minimal and dynamically make the menu with my program selections. I want to move a menu reference or a reference of vi in this sub - VI and have control of sub - VI VI top-level menu. Anyway is it possible?

    You can not trig a menu programmatically in LabVIEW item. Look at this thread to work around the problem.

    Ben64

  • Deleting default menu items

    Hi all

    In my application, I use the techniques described here ( http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800508/... )

    to create a tabbed view.

    However, when I activate the LabelFields navigation menu, I get a menu title element "copy".  I guess that's the default for a LabelField.

    My makeMenu code does not call super.makeMenu (menu, for example).  It creates menus that it needs and then stop.

    Does anyone have suggestions on how to remove the 'copy' in the menu?

    I need to replace the LabelField, substitute makeMenu and simply do nothing?

    Thanks in advance.

    Hello

    In your

    makeMenu(Menu menu, int instance)
    

    I would add

    menu.deleteAll();
    

    You should then have:

    protected void makeMenu(Menu menu, int instance) {
        menu.deleteAll();
    
        // add your code here
    }
    
  • How to make the current page menu item displayed in a different font color?

    Hello

    My menu bar works very well. The links I get the text to hover display the desired color. Now I want the item menu of the selected page show a third color.

    With live-code activated in Dreamweaver CS6, I can see the following code is generated by the dynamic menu:

    "< script type =" text/javascript"src="/CatalystScripts/Java_DynMenusSelectedCSS.js "> < / script > <!-dynamic output CSS menu start-> < div id ="cat_549633_divs"> < ul id ="nav_549633">< class li ="selected"> < a href =" / home.html "> home < /a > < /li >< li > < a href =" "/ leistungen.html" > Services < /a > < /li > < li > < a href = "/ uhrenservice.html" > Uhrenservice < /a > < /li " "> < li > < a href =" / versteigerungen.html "> Versteigerungen < /a > < /li > < li > < a href =" / diamanten.html "> Diamanten < /a > < /li > < li > < a href =" / ueber_uns.html "" > Uber each < /a > < /li > < li > < a href = "/ kontakt.html" > Kontakt < /a > < /li > < /ul > < / div > < script type = "text/javascript" > catSetSelectedCSSItem ('nav_549633'); < /script > <! - end of output CSS Dynamic Menu - >

    The .selected class is created in the first element of the list (home) because it is the current page.

    And here is my CSS:

    {#nav_549633}

    float: right;

    list-style-type: none;

    padding-top: 5px;

    }

    #nav_549633 li {}

    float: left;

    text-align: left;

    }

    #nav_549633 li a {}

    color: white;

    text-decoration: none;

    margin: 27px 0 0 0;

    font size: 13px;

    text-transform: uppercase;

    }

    #nav_549633 Li a: hover {}

    color: yellow;

    }

    {.selected

    color: Green;

    }

    The green font color does not appear. It is still white.

    In order to see if the class 'works"I tried a few other attributes that work!

    {.selected

    color: Green;

    padding: 20px

    background-color: blue;

    }

    In this case, the item appears as a blue box with 20px padding, just as expected - but the font color is always white.

    Can someone help me?

    Kind regards

    Herman

    Hello Ginoem50,

    Looking at your css looks like the selected class does not work because the li #nav_549633 one is more specific is the one who is listened to.

    change .selected li.selected a #nav_549633 and it should work.

    Hope this helps,

    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • Move Clips - and how not to lose the audio? Need help!

    Hello

    I used Premiere Pro 6.0 widely enough over the years and have recently moved to first Pro CS5.

    With Premiere Pro 6.0 I could move/drag clips on the timeline and their linked audio file would be to spend with them.  If I passed the video to a different video track, say, an existing clip, the audio would also move to a free audio trail entry and not automatically on any what audio existing.  This would allow me to rearrange the clips on the timeline simply by moving and using other video tracks as temporary storage location... easily and loses not or write on any other audio existing.

    However in first Pro CS5 if I do the same thing, the video will move to the other video track I move, but the audio will remain in the audio track say and will write on any audio existing when the mouse button is released.  The only way to get around this, I do not see in the manual is to: (1) drag the video to the other track video, and (2) press the CHANGE of <>key, while that (3) dragging the audio linked to a different audio track to avoid audio existing to be written too.

    My question: is there a configuration: I put in CS5 to allow moving / dragging clips to work as in Premiere Pro 6.0?  I already messed up several times in CS5 inadvertently overwrite audio existing.

    Your expert advice and recommendations would be greatly appreciated.

    THANKS IN ADVANCE.

    function() {return A.apply (null, [this] .concat ($A (arguments)))}

    davdav99 wrote:

    However in first Pro CS5 if I do the same thing, the video will move to the other video track I move, but the audio will remain in the audio track say and will write on any audio existing when the mouse button is released.  The only way to get around this, I do not see in the manual is to: (1) drag the video to the other track video, and (2) press the button, while (3) dragging the audio linked to a different audio track to avoid audio existing to be written too.

    My question: is there a configuration: I put in CS5 to allow moving / dragging clips to work as in Premiere Pro 6.0?  I already messed up several times in CS5 inadvertently overwrite audio existing.

    Unfortunately this his how ist done now.

    The workaround is indead now SHIFT and dragging.

    There is no way to put it as he was at 6.0.

    You'll get used to it over time, we all had.

  • How to insert a drop-down menu item via HTML without moving any other existing content?

    Hello

    I inserted an Electrolux (Bullseye Locators) reseller on my business through HTML Web site. When you preview in a browser and try to use the Locator, the results appear, but because it is a drop down with the results, he pushes in fact all content below down and I get a white space between the Locator & content. I tried to separate with the Locator on another layer, but it doesn't seem to help. Anyone had this happen before? If so how to solve the problem? -Thank you

    Draw the HTML in Design view of Muse large enough to fit the entire height expanded area of the Locator.

Maybe you are looking for

  • Convert 8 bit RGB Bayer Image in Monochrome

    I'm looking for a way to perform an edge detect algorithm on the camera sensor image which was released in 8 bit RGB of Bayer (cannot specify the monochrome output sensor).  The image is read on the gray u8 IMAQ camera, but then the edge detect does

  • Windows Vista crashes when updates are being installed

    Regularly, I keep my windows vista up-to-date. However, recently the windows vista displays update 5 new installs is required to close to 400 MB in total. the windows update starts about 5 minutes after the connection automatically, and will reach ab

  • Where to get a copy of Windows XP SP1a full

    I need to find a copy of Windows XP service pack 1A before I can using Windows Update (I hope) or Service Pack 2 to get up to SP3 so that I can re-updating to Windows 8, which was broken by a few .msi I installed. ;-} Lament www.Microsoft.com/en-US/D

  • Mac for LaserJet 1018 driver?

    I have a MacBookPro laptop and need a driver for my HP LaserJet 1018. Can anyone help? Thank you very much. R

  • HP Officejet 6700 Premium - useless error message

    Only error HP Officejet 6700 Premium "there is a problem with the printer or ink system" I turned off and unplugged but same error with no code.   This message occurs as soon as the printer lights.   Where should I start looking?