How can I disable default ContextMenu?

Hello

I learned development BlackBerry and am in the middle of writing my first important application. On the main menu of my application (or any extended screen screen, actually) when I click on a part of the screen that does not contain a control, a menu appears with the options Application Switch, keyboard Show, closed and full Menu.

I don't want to remove these in the regular menu that appears when you press the BB button, I just want to stop that contextmenu of popping up when you click on the screen. I tried to set NO_SYSTEM_MENU_ITEMS in the constructor of the screen, but who does two things, I don't want: default menu items are removed from the BBKey menu, and context menu always opens with only the item of Menu "complete."

Is there a way I can just disable the contextmenu to appear? I tried to replace makeContextMenu but this does not seem to have any effect.

Thank you

Oh just to clarify a few things, because I fear that we are not understand your problem correctly.

When we say contextmenu, I usually do this to mean the menu that is associated with the context, i.e. the thing in short.  Thus, for example, when a field Edit is to the point, a contextmenu will include "clear field".

However in this case, it is not what you seem to mean.  The context menu that you speak here looks the the menu that is called when you press the trackball.  This isn't a specific context of the field menu.

I think you can remove this menu in two ways:

(1) override navigationClick, but I don't really know where you want to do.

(2) ask your makeMenu check the instance (the second parameter).  The invocation of lick trackball has a different value, sorry don't remember what it is.  But the invocation of menu keys has a 0.  If instance properties not 0, calling super.makeMenu and this will remove the default menu items.

I suspect you want to use navigationClick, but I don't really know how to implement this and do not have time to test.  But stick one of these on your screen and see when it is called and what is removed if you return the value true (which means that you have used the click).

Hope this helps, or clarifies a bit.

Tags: BlackBerry Developers

Similar Questions

  • How can I disable default options?

    Whenever I start Photoshop 2014, "view > Extras" is checked by default, send me lines and boxes of roses really annoying whenever an object is selected.  Where in my preferences can I change this so that it is not on by default?  So far I have tried:

    -Disable the setting and then saving it to my desktop... IN CASE OF FAILURE

    -Go in "> display > display Extra Display Options" and uncheck EVERYTHING, yet, it does not prevent these lines does not happen... IN CASE OF FAILURE

    For the record, you cannot uncheck this setting without a file to open, it is grayed out by default without a file is open.

    Help, please.  Is there a setting in preferences that I don't know?

    View - Show - smart guides (uncheck)?

    Seems to stick up for me.

    -Christmas

  • How can I disable default Firefox on Mac OS 10.6 Snow Leopard

    Accidentally activated to use as your default browser and you want to remove this.
    Use Safari on a regular basis and now cannot be disabled by default for Firefox.

    Thank you.

    1. open Safari (/ Applications).

    2. on the Safari menu, click Preferences.

    3. click the general button.

    4. choose your desired in the pop-up menu 'Default web browser' browser.

    (See the screenshot)

  • How can I disable photoshop x 64 as default in bridge

    Grrr how can I disable photoshop x 64 as default in bridge. I have several plugins that don't work in X 64 photoshop. I had windows by default photoshop 32 bit still bridge insists on the fact that I use the 64-bit version.

    Edit/Preferences/file type association.  To switch to 32-bit, you will need to browse (program file (x 86) it and select the photoshop.exe file.)

  • How can I disable the newtab most used feature display sites. I want the new tab to open the page displayed in the newtab:url in the topic: function config

    How can I disable the newtab most used feature display sites. I want the new tab to open the page displayed in the newtab:url in the topic: function config

    41 of Firefox is no longer uses the browser.newtab.url setting in about: config because he was constantly attacked by malware. From 41 of Firefox, you need an add-on to change the new tab page.

    Here are a few options (I'm learning more all the time):

    • If you are already using the extension classic restaurateur theme: There is an option somewhere (!) in his dialogues of the parameters to select another page in the new tab.

    Setting up substitute again tab

    After installing this extension, you must use the Options page to set the new desired tab page (instead of use subject: config).

    Open the page modules using either:

    • CTRL + SHIFT + a (Mac: Cmd + shift + a)
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. Then on the side right, find the new tab override and click the Options button. (See first screenshot attached).

    Depending on the size of your screen, you may need to scroll down to enter the address in the form. (See second screenshot attached). For example:

    • (Default) page thumbnails = > subject: newtab
    • Blank tab = > subject: empty
    • Built-in Firefox homepage = > topic: welcome
    • Any other page = > full URL of the page

    Then tab or click this form field and you can test using Ctrl + t.

    Success?

    Once you have set it as you wish, you can close the Add-ons page (or use the back button to return to the list of Extensions of this Options page).

  • How can I disable AutoFill for a recipient name?

    Inadvertently, I added an additional letter at the end of an E-mail address of the recipient. Now when I try to enter the correct name, autofill insists on adding the extra letter. How can I disable AutoFill?

    AutoFill suggestions come from your address book. The misspelled address is almost certainly in a named collected addresses address book. Find, edit and move it to your default address book.

    An easy way to find it would be to create a new message to the wrong address and save it as a draft. Open the message of project, click the yellow star next to the address, select Edit, and a dialog box appears, where you can change, delete, or move the Contact entry.

  • Sometimes I disable my internet router intentionally & Firefox implements a warning window to this being off topic. How can I disable this alert window?

    When I go out or go to bed at night, I disable my wireless internet router. Sometimes I turn off when I just do something that doesn't require me to be online. Whenever I do this, Firefox continues implementing a warning window every two minutes telling me that I have no connection (that I know). How can I disable this window alert so it isn't keep appear in the middle of a game or a document that I do?

    Its an addon, not firefox.

    Start Firefox in Safe Mode to fix the problem and 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).

  • How can I disable touch sounds?

    I've recently updated to Android 4.4.2 and now I touch ring ONLY when I type in Firefox version 31.0. Any other apps have touch sounds, and I have disabled system/touch sounds. How can I disable them for Firefox?

    Hi guigs2,

    Thank you for your help. I tried to switch the keyboard preferences several times, including with reboots. No change. I should add that the Tablet is an Asus transformer TF701T so I also confirmed that I had Google touch keyboard as default and not the Asus touchpad.

    Will [topic: support] took me in a "Troubleshooting" page, but saw no reset button. I decided to uninstall and reinstall.

    A very interesting thing that happened at that time here. As soon as I uninstalled Firefox, I started to have touch sounds in ALL my apps. Before uninstalling, I only received them in Firefox. I checked again and the system settings Touch sounds Android has been still on off and Google keyboard was always set by default. So why am I touch sounds?

    I went to re - install Firefox and got a prompt asking if I wanted to use the Asus keyboard or keyboard from Google. I chose Google keyboard (as I always have) and all THE sounds of touch stops immediately. For all applications.

    Not sure if it's an Asus, Android or Firefox glitch. But there you go. Fixed a problem.

    Best,
    RE

  • How can I disable the animation when I'm on the home page of Firefox?

    I have Firefox as the page start page that appears whenever I run Firefox. But I don't like animations that always appear now that I've upgraded to 29.0.1 for Mac. (The shooting star and the animation of 'space invaders'.) They are distracting. How can I disable the animations?

    If you prefer not to see excerpts on the topic: home page, you can set the pref browser.aboutHomeSnippets.updateUrl an empty string on the about: config page.
    Delete the storage\moz-safe-about + House in the closed Firefox with Firefox profile folder (Firefox > Quit) remove the snippets stored in IndexedDB and use Firefox default value.

    You can use this button to go to the Firefox profile folder currently in use:

    • Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)

    You can reset the browser.aboutHomeSnippets.updateUrl the default pref to reactivate the code snippets.

  • How can I disable IE explorer on PC because of pirate HS IE WARNING

    Saw the news that IE presents a serious security problem according to homeland security. I chose to use Firefox instead as my new default browser. It I... or can I... disable Internet Explorer completely? This will affect the performance of my operating system? (Windows 7) and HOW to disable IE? What are the steps? I'm afraid that just using another browser won't keep my PC be vulnerable to hackers or the problem of memory which contains the IE bug. Can you explain and help?

    I also have Adobe Flash Player 13 installed on my PC. How can I disable it? Homeland Security has recommended the neutralization of him as well. Thanks if you can help.

    Please make sure that you keep windows, Flash, Firefox and your anti-virus software updated moving forward for you ensure you plug holes that they become known.

  • How can I disable the new scaling feature? When a popup is open, it is too big.

    This happens in Farmville. Since the new version has been installed everything seems bigger, Farmville, dialog boxes toolbar. How can I disable this feature of the scale of new/fixed?

    Kent

    Hello, firefox 22 is now about the density of pixels you have upgraded to system in Control Panel > appearance > display. more information about this is available at http://windows.microsoft.com/en-us/windows7/make-the-text-on-your-screen-larger-or-smaller

    If you want to set the text size/pixel density in firefox is different that your system settings as it has been addressed in previous versions, enter about: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named layout.css.devPixelsPerPx. Double-click it and change its value to 1.0 (or any zoom factor that suits your needs; -1.0 is the default and will respect the parameters of the system).

  • How can I disable the suggestion to "Improve Firefox" which appeared after the update of FF8? No any choice allows to avoid the appearance of popup the next time.

    I use FF8 with Selenium RC test infrastructure. When I installed the last update of FF contextual dialog YesNo "You want to contribute to improve..." ' began to appear before each test is run. Thus, the test stopped running on this popup and my problem is that I can not disable this popup for next time. I want to say I select Yes or no, popup disappears, but still appears in the next round of tests. How can I disable this popup at all?

    Hi guys! Thanks to all of you for the cooperation and ready to help. I have summarized all your advice, so the following 3 steps unravel the problem for FF8 and do my tests to run fine:

    1. Create and configure a new FF profile, using these instructions and suggestions . Don't put your FF to the default profile at the end.
    2. Then follow the first 6 steps by SafeBrowser (see above) to the new profile. Switch to the default profile (in firefox - p).
    3. Don't forget to use your new profile when you run the selenium Server (-firefoxProfileTemplate command line parameter) or the value of selenium to use this profile when starting a browser to Salenece.
  • How can I disable a site of the attack that opens when I launch my browser, I use a Mac OS 10.6.4?

    How can I disable a site for the attack which opens behind my home page whenever I launch my browser? I'm on a Mac OS 10.6.4

    URL of affected sites

    http://www.therugged.com

    Restore default homepage

    1. in the menu bar on top of Firefox, select Tools | Preferences

    2. make sure that you are in the general group

    3. click on restore default

    4. Finally, click OK

  • Green LifeCam stays on. How can I disable it?

    I noticed that the green light of LifeCam is always enabled and takes my picture.  Someone else control it?  How can I disable the LifeCam

    Hello

    1. What is the model of the webcam number?

    2 - is a built-in webcam?

    3. have you updated the LifeCam driver?

    In response to the questions above could help us help you better.

    Run the analysis of safety in case of malware etc:
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Driver download link: http://www.microsoft.com/hardware/en-us/downloads

  • How can I disable SLAAC on Windows XP (SP3)?

    Hello!

    In Windows Vista and later versions, you can assign a static IPv6 address and the gateway to the interface via a GUI or alternatively with netsh. Address can be configured statically on Windows XP with

    netsh interface ipv6 add address "Local Area Network" 2001:db8:bad:f00d

    And the itinerary by default with:

    netsh interface ipv6 add route: / 0 2001:db8:1 'Local Area Network '.

    But the problem is that if RA-light router is present on the link, Windows XP will also assign an automatically generated based on the advertised prefix and a link-local address (fe80 ::) address of the router as the default gateway.)

    How can I disable the automatic configuration if the host is statically addressed?

    Thanks for the reply.

    Hi Johnny,

     

    . What is the brand and model of the router?

    Please follow the steps in the link below and check them with the question:

    To configure TCP/IP for static addressing:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/sag_TCPIP_pro_ManualConfig.mspx?mfr=true

    I hope this helps.

Maybe you are looking for