Disable the context Menu by default


Try this

protected void makeMenu(Menu menu, int instance) {
     Field focus = UiApplication.getUiApplication().getActiveScreen().getLeafFieldWithFocus();

     if (  (focus != null)  &&  (focus instanceof LabelField)  ) {
            menu.deleteAll();
            menu.add(new MenuItem("Delete Item", 10, 20) {
                public void run() {
                    delete_item();
                }
            });
            menu.add(new MenuItem("Open", 20, 10) {
                public void run() {
                    open();
                }
            });   

     }
}

Tags: BlackBerry Developers

Similar Questions

  • I use Firefox for a kiosk application. Can I disable the context menu and zoom?

    I use Firefox for an application kiosk on a touch screen monitor. I will prevent users from interacting with the browser interface. Is there a way to do this? Disable the context menu and zoom for the touch gestures could prevent users from getting into a State where they are unable to use the application.

    Hi TrevorTubbs, you can disable the zoom in the browser with the method described in http://kb.mozillazine.org/Locking_preferences & locking these preferences:

    lockPref("toolkit.zoomManager.zoomValues"; "1");
    lockPref("zoom.maxPercent"; 100);
    lockPref("zoom.minPercent"; 100);
    

    I'm not sure if disabling the context menu...

  • "Send to..." 'Recipient' disable the context menu in Explorer for JPG does not or not broken.

    Problem on VISTA ULTIMATE 32.  I have all the latest patches. It's a laptop ASUS M70. Default email course is Windows Mail.

    In the Windows Photo Gallery, when I select a photo, then click on "messages" then that nothing happens.
    In Solution Explorer, select a JPG photo, and then I can either 1) click on "E-mail" or 2) via the context menu, select "send to" followed by "Recipient" and appears "attach files" box that allows me to resize the jpg file. If I want to, I can cancel it with success. However, if I select "join" then it shows "Preparing to send" and just hangs there.  If I cancel (after say 1 to 10 minutes), it hangs there doing nothing with the message «Cancel...» "indefinitely.    If I cancel the application "attach files" in the Task Manager, it lowers the Explorer.

    What is going on? What I want to do is ' send to ' 'recipient' some resizing photos (via the context menu in the Explorer). There is no problem to send other files e.g. *.mp3.

    I just noticed that (even if an instance of "Attach files" is 'preparing to send' or 'Cancel') it will work properly if I do not resize. In other words, if I want to send the original size. While so-called to resize JPG? Is it an idea to my problem?

    Hi MikeW404,

    As it works fine in safe mode then there could be some third party software installed on the computer are contradictory in normal mode, I would say that you clean the clean boot procedure and check.

    To help resolve the error and other messages, you can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    Perform the check and the clean boot if you have the problem.
    1. click on Start, type msconfig in the search box and press ENTER.
    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.
    2. in the general tab, click Selective startup.
    3. under Selective startup, clear the Load Startup items check box.
    4. click on the Services tab, select the hide all Microsoft Services check box, and then click disable all.
    5. click on OK.
    6. When you are prompted, click restart.
    7. after the computer starts, check if the problem is resolved.

    If the problem is resolved to check what is the cause of the problem, referring to the link given below:
    http://support.Microsoft.com/kb/929135
    Reset the computer to start as usual
    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    Click Start, type msconfig in the search box and press ENTER.
    If you are prompted for an administrator password or for confirmation, type your password, or click continue.
    On the general tab, click the Normal startup option, and then click OK.
    When you are prompted to restart the computer, click restart.

    Halima S - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • ring personalized photo: disable the context menu

    I ring personalized photo - classic controls those - and they work very well when you click on the increment and decrement, however by clicking anywhere on the image causes a little popup to appear - as the ring menu control - which shows all the images. I would like to disable this during execution; How do I?

    IM on Labview 8.6

    Hi, Faust,.

    It's just a photo of ring with a decoration on top, but you can go...

    Only, I put the inner transparent area and left border decoration in black, so you can actually see the decoration...

  • How can I disable the context menu the figure at the bottom of the screen when I drag the mouse on a document page?

    It's a gray rectangle with about 10 icons on it.  I prefer to use the menu and find the distracting pop-up.

    Hi dmodersk,

    Please click on the last option with an arrow at top on this gray rectangular box & she will get rooted in the toolbar instead of float down.

    Kind regards

    Nicos

  • disable the context menu

    I have a requirement to disable printing from the flash.ui.contextMenu. Do I have to extend this class as the example displays or y at - it an easier way?

    Thank you

    Andy C. (never #)

    Try this (from the Flex help documentation):
    private function removeDefaultItems (): void {}
    myContextMenu.hideBuiltInItems ();
    var defaultItems:ContextMenuBuiltInItems = myContextMenu.builtInItems;
    defaultItems.print = false;
    }

  • Context menu to yahoo mail IN the context menu of firefox

    With yahoo *new e-mail format*, you must right-click on any custom folders, you made and choose * Remove * from the context menu, BUT this menu is often UNDER own Firefox context menu, it's impossible to click on anything on their.

    I've written for them, but as expected, they say that's not their fault.

    I was wondering if there is an option modifier key to temporarily disable the context menu of Firefox from popping up.

    Tools > Options > content - JavaScript > advanced...

    Disable or replace context Menus = checked

  • Each time I click on a folder, search companion will appear. I am interested in DISABLING research or travel companion down on the pop-up menu, or at least, put it further down in the context menu. How can I do this? My computer not used to do this.

    Each time I click on a folder, search companion will appear. I am interested in DISABLING research or travel companion down on the pop-up menu, or at least, put it further down in the context menu. How can I do this? My computer not used to do this.

    Doug Knox fix - http://www.dougknox.com/xp/scripts_desc/xp_folder_open.htm
    Search Companion starts if you double-click a folder or computer drive - http://windowsxp.mvps.org/searchwindow.htm MS - MVP - Elephant Boy - Don ' t Panic!

  • "Insert" option is disabled in the context menu for the XQuery Mapper

    In regards to the XQuery Mapper fails when you drag from the Source to the target (Doc ID 1962165.1()

    Insert option is disabled in the context menu due to a complex type in the XSD. How this complex type can be mapped if the target instance must be created before being able to map?

    < XS: complexType >

          < xs:choice >

               < xs:sequence >

                    < xs:element / >

                   < XS: element / >

              </ XS: Sequence >

              < XS: element / >

         </ XS: Choice >

    </ XS: complexType >

    Hello

    I created a small diagram to test, and indeed you cannot use the Insert create items in the design, but you can do it in Source view.

    To be even easier that I did was to take this scheme which had only a root with a choice and added another element like a father (so I added another level). Like this, you are able to use the Insert, and if you see the code that is generated after doing, in the Source, you'll have what you need.

    See you soon,.

  • Strange behaviour of the context menu in the pop-up window to disable the option

    Hello

    I have the table with the context menu of the pop-up window

    < f: facet name = "contextMenu" >
    < af:popup binding = "#{backingBeanScope.backing_jsf_fragments_postoffice_ContentMovementsView.p1}" id = "p1" contentDelivery = "immediate" > "
    < af:menu text = "menu 2" binding = "#{backingBeanScope.backing_jsf_fragments_postoffice_ContentMovementsView.m2}" id = "m2" > "
    < af:commandMenuItem text = "#{web_Bundle ['label.toolbar.menu.item.record.edit']}" "
    Binding = "#{backingBeanScope.backing_jsf_fragments_postoffice_ContentMovementsView.cmi3}" id = 'cmi3' "
    actionListener = "#{backingBeanScope.backing_jsf_fragments_postoffice_ContentMovementsView.showEditBookRecordPopupActionListener} '"
    Disabled = ' #{bindings. " RecordStateName.inputValue == 'ARRANGED'} "/ >"

    disabled the option works strange. When I right click on the folder with RecordStateName.inputValue = 'ARRANGED' menuItem is enabled. By selecting this menuItem enabled, nothing happens but menuItem is disabled. Disabled menuItem never going back active even I right click RecordStateName.inputValue "ARRANGED" <>and click on disabled menuItem does nothing.

    Help me how do to turn menuItem in context menu of the pop-up window.

    I use JD Studio Edition Version 11.1.1.5.0 on Weblogic 11.1.1.5

    Thanks in advance

    Hello

    You must use contentDelivery = "lazyUncached" to the context menu for re-read its content.

    Frank

  • The context menu 'this framework' is missing

    There are two users in question, the two Firefox running on Windows 7 36.0.1. When right clicking on a frame in a Web site, they have a context menu option 'the framework', echoes cascading on to provide various actions you can take (this frame printed, etc.). The other user doesn't have this option. To the best of my knowledge, the two users are running installs similar: the default collection of plug-ins that are enabled in our enterprise environment, they do not have twisted all topic parameters: config, etc. Why 'This framework' context menu would only not available for one of them? Is there a way to force be activated?

    I found it...

    I re-read your posts tonight and spent some time tinkering with Firefox on my machine at home (36.0.3 on Win8.1). I was watching my mailbox in OWA, which has a shared mailbox added as well. I discovered that the messages in the shared mailbox Inbox had the option of this framework in the context menu, while the Inbox has no messages in my personal mailbox.

    A little back of comparison and I finally noticed: display the list of my Inbox is configured to display Conversations by Date (see screenshot). However, the shared mailbox Inbox had the Conversations view option deselected.

    When the Conversations view option is disabled, OWA displayed each message in the reading pane in a frame. In Conversations mode, it seems to use CSS for the reading instead of this pane.

    Thank you for your help is in the right direction.

  • Using the context menu in Firefox causes my CPU to run constantly at &gt; = 50%, until the program is closed.

    I discovered that even open the context menu, without even a selection causes this to happen. I've uninstalled and reinstalled the software. Here is my system info:

    Name of the operating system Microsoft Windows 7 Home Premium
    Version 6.1.7601 Service Pack 1 Build 7601
    Another Description of the OS is not available
    Manufacturer of operating system Microsoft Corporation
    System name RAY - PC
    System manufacturer Hewlett-Packard
    HP HDX 18 Notebook PC model system
    System Type x 64-based PC
    Processor Intel (r) Core (TM) 2 Duo processor T9400 2.53 GHz, 2534 MHz, 2 Lossnay, 2 logical processors
    BIOS Version/Date Hewlett-Packard F.04, 01/10/2008
    SMBIOS Version 2.4
    Windows directory C:\Windows
    System directory C:\Windows\system32
    Boot Device \Device\HarddiskVolume1
    The local United States
    Hardware Abstraction Layer Version = "6.1.7601.17514".
    User name Ray-PC\Ray
    Time Zone MST
    Physical memory (RAM) installed 4.00 GB
    Total physical memory 4.00 GB
    2.42 GB available physical memory
    11.8 GB total virtual memory
    10.1 GB available virtual memory
    7.81 GB page file space

    Help!

    Hello

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    Thank you.

  • Make a right click on the e-mail list no longer opens the context menu.

    Hello world
    Thunderbird collapsed to display the context menu on the mailing list recently. Make a right-click displays just the cross line. What is the problem could be?
    Thanks anyone for any help.

    Win 8.1 64
    Thun 31.3.0

    Very strange.
    Make a right click on the email list should open a menu drop-down.
    Usually a line crossed through something means that it is marked as deleted in an imap e-mail account.

    See if there is a conflict with an add-on.
    Restart Thunderbird in safe mode.
    Help > restart with disabled addons.

    then run the same test; Right click on the email list.
    Do you get the drop down, if so, then one of your addons is the origin of the conflict.
    You'd have to disbale each in turn to find what the problem is.
    Maybe the addon should update.
    Report on the results.

  • Firefox always displays all the possible options in the context menu

    When I select some text on a web site and right-click, I get a popup menu with about 50 options.

    Some earlier, archived posts have addressed one of the causes of this - extensions - but disable my extensions and restarting did not work for me. I always get the context menu options-50.

    Here are the previous posts:
    https://support.Mozilla.org/en-us/questions/955270
    https://support.Mozilla.org/en-us/questions/951383

    Do a clean reinstall and remove the Firefox program before (re) install a new copy of the current version of Firefox.

    Download a new copy of Firefox and save the file to the desktop.

    If possible to uninstall your current version of Firefox to clean the Windows registry and settings in the security software.

    • Do NOT remove the "personal data" when you uninstall your current version of Firefox, because this will remove all profile folders and you lose personal data such as bookmarks and passwords including data profiles created by other versions of Firefox.

    Remove the Firefox program before installation newly downloaded copy of the Firefox installer.

    • (32-bit Windows) "C:\Program Files\Mozilla Firefox\"
    • (Windows 64 bit) "C:\Program Files (x 86) \Mozilla.

    Your bookmarks and other personal data are stored in the Firefox profile folder and will not be affected by a uninstall and (re) install, but make sure that 'delete personal data' is NOT selected when you uninstall Firefox.

    If you keep problems also create a new profile.

  • How to customize the context menu in the legend of plotting the graph of wave?

    I am currently on the creation of a simulation of various control loops as educational objectives. Here, I have a chart in waveform to different signals. Now my question, how to customize the context menu in the track of the Waveform graph legend => when I click on 'image' behind the Plotnames one menu to open options where you can customize the color etc. or plotwidth. But students should not have access to these settings. How can I change or disable this menu? The context menu for the waveform graph, I've already customized by right click on table of waveform-Advanced online-online menu, but for the legend of conspiracy, I have not found this setting...

    Thanks for your answers... I tried different things, but I don't see a solution yet :-(

    See you soon

    DCP

    Hi, STC,

    There have been a number of suggestions for change or disable the table , right-click menu, but I see that this does not affect the context menu of legend , which is what you ask for help with.

    To prevent completely the menu right-click to work, you must disable the chart control entirely. You can do this by double-clicking on the chart and select Advanced Options > active state > disabled. This will prevent the operator to be able to generate a menu right click on the chart control.

    If however you still wanted the table, make a right click menu to work, but the legend made a right-click menu will be disabled, I see two options:

    1. draw a classic decoration square on the legend and the transparent color. This will prevent the mouse clicks to achieve the legend, and transparent it will not interfere with your user interface appearance.

    2 use a Structure of the event to capture the event filter Popup Menu of Activation?  for the chart control. You can then use the Coords property to determine if the mouse is over the legend or not. If this is the case, send faithful away? right Terminal. It will refuse the context menu when the user clicks on the legend of the plot.

Maybe you are looking for

  • Satellite S50D - A - 10 G - accidentally uninstalled Atheros WLAN driver

    Hey,. So, be a fool, I accidentally uninstalled the Atheros driver, and then I noticed that my laptop is therefore more able to detect my WiFi at home. After looking around, online, apparently it's because I uninstalled Atheros? (Sorry, I'm a noob to

  • SteadyShot

    Hello world I dropped my A57 about 3 feet on a concrete floor. I have no external damage, but sometimes my pictures are blurry. How will I know if the Steady Shot works or not. In the Menu, I can turn on or off the Steady Shot.

  • Work PCI6110 Board P/N 184111 L - 01 Will NEITHER-DAQ 6.9.3 revision L

    Hello: I have an older version of Labview and I wonder if a PCI-6110 card with part number 184111 L-01 would work with NOR-DAQ traditional such as NOR-DAQ 6.9.3? Thank you, David

  • GPS location works Simulator, but does not work in the device

    Hi all, I have problem with GPS location. I have the button through which I can get the latitude and longitude in Simulator via LocationProvider class. His work very well in the Simulator, but giving is not the result in the unit. I use Storm 9530 de

  • Internet VPN connection disconnects

    Good afternoon I have the Cisco VPN Client and several established connections. When I connect to them I have connected either to the VPN, I can access the network and their teams. But I have a problem on one of the connections and is well connected