Pop-up menu is coming to press the long of the label field

I have a screen where I have a clickable labelfield. For this I am the touchEvent() substitution. Now on the screen, I add two menus. So when I touch the labelfield for a long time, it shows the pop-up menu with these two menu that I don't want. How to hide this pop-up menu?

This happens as I'm back super.touchEvent () for (overridden) method of key event.

Help, please.

I changed the code from menu addition like that and it works:

public void makeMenu( Menu menu, int instance )
    {
        super.makeMenu( menu, instance);

        if(instance == Menu.INSTANCE_DEFAULT)
        {
             menu.add(new MenuItem("xxx", 1, 1) {
                public void run() {

                }
            }); 

             menu.add(new MenuItem("yyy", 2, 2) {
                public void run() {

                }
            });
        }

    }

This line makes the difference here:

if(instance == Menu.INSTANCE_DEFAULT)

Tags: BlackBerry Developers

Similar Questions

  • How to prevent the drop-down menu when you click in the URL field?

    Hello

    For some time there is Safari displays a short title in the URL field when you view a web page (for example, at the moment it says "Apple Inc").  Quite often I want to drage the actual URL in a note or on the desktop for later use.  Whenever I click in the URL field to do this, Safari down a bunch of icons corresponding to the bookmarks in the bookmarks bar, which is useless as my favorite bar is always visible.

    What I would do is to disable this action so that when I click on all I get is the URL so I can drag it somewhere.  Quite often when I drag the URL and domain of Favorites icons is visible, Safari think I want to lodge in this area and therefore mixes the existing icons around according to what path taking when you drag.  It's really very annoying behavior and there must be a way to disable.

    Thank you!

    -Tod

    Safari > Preferences > search

    Uncheck the "Show Favorites".

  • How to remove the option of manufacturer brand label in the owner of the label field in the Specs trade?

    I am trying to remove this label of brand manufacturer of the label options.

    PLM for process 6.1.1.5

    I know it is a default option in the version, but I can add the code for that?

    It is impossible to change the status of the Label Owen in ADMN, but you can run the following against your DB to set the status "Brand manufacturer label" to archive. Then, it will not appear in the options for labels.

    update the status for all language IDS

    Update gsmLabelOwner

    set status = 4

    where pkid = "21590A066F8F-6978-4363-B1AC-58C7F52B597C.

    Important notice: Please backup your DB before that you were trying above solution.

    And there may be some potential risks (I am clearly not currently). So please save this change. In the future, you encounter some problems on Label owner maybe we could talk.

  • I can't stop from the start menu. Only by pressing the power button.

    Original title: how to run diagnostics

    I can't turn off the computer. except turn it off with the switch.

    Also, when I hit 'start', the menu comes up for a few seconds only.  If I right click on start, can open the menu and work from there.

    Also displays sparkle.

    Hello

    1. have you made changes on the computer recently?

    Method 1.
    Let us first start the sfc scan and check if there are any file system corruption.
    a. to do this, click Start, click programs, accessories principally made, right click Guest and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click on allow.
    b. type the following command and press ENTER:
    sfc/scannow
    The sfc/scannow command. analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions.
     
    More information on SFC scan found in this document:
    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)
    http://support.Microsoft.com/kb/310747

    Method 2.
    Check to see if the problem exists in Safe Mode, if the computer works as expected in mode without failure, then we can solve the problem in the clean boot state.

    a. refer to the article below for the procedure safe mode in Windows XP

    A description of the options to start in Windows XP Mode
    http://support.Microsoft.com/kb/315222

    b. you need to perform a clean boot to find the program that is causing and then disable or remove.

    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353/en-us

    Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.

    Method 3.
    If the problem persists, then create a new user profile and then copy your current users assigning to this profile. For more information, see:
    How to create and configure user accounts in Windows XP
    http://support.Microsoft.com/kb/279783

    How to copy data from a corrupted to a new profile in Windows XP user profile
    http://support.Microsoft.com/kb/811151

    How to recover damaged Windows XP user profile
    http://support.Microsoft.com/kb/555473

     

    I hope this helps.

  • Show alert window when the selection is made in menu drop-down (or when the text field is filled)

    I'm a JavaScript novice writer and need help a warning window that meets the programming user selection form a menu drop-down.

    If the user selects any option except the default choice (which is just an empty space), I want an alert is displayed.  If the user is moving through this area without changing the default value, nothing should happen.

    I have a script attached to the "blur" event for the dropdown menu, but it appears each time you tab in this area, of course.  I don't know how to tell him to display the alert if and only if the user has changed the selection.

    Similarly, I have another field which is a simple text field.  If the user types anything in this area, I would like another alert window pops up.  The thing from the drop-down list seems a little more difficult, so if anyone can help me get that squared away, I can probably understand how to program the alert text field.

    In fact, it's the same code for both types of fields:

    If (event.target.value! = event.target.defaultValue) app.alert ("your message");

  • Set the font size for the menu items and content of the label tab?

    Old eyes, small fonts.

    I can manage the fonts/zoom for the content of the site. SITE OF FONTS ARE NOT THE PROBLEM.

    Y at - there a way to set the font of the browser settings in: config to control the fonts in the BROWSER MENU ITEMS (view file Edition... etc) and TAB TITLE (TEXT) CONTENT?

    PS - Keep us ordinary mat canned. A simple 'no' or 'Yes' with simple details of relevant about: config entries, would be nice. GREAT access to the most COMPREHENSIVE list possible would be on: configuration settings

    You keep it as the 'EASY' button, I take it? Ever have something like this for Thunderbird, now I feel a little stupid for not connecting the dots. Thank you.

    PS - just in case... Got a list of about: config options?

  • I copied my menu in my menu SUP pages and now the label in the menu disappeared?

    I created a void under a page, pages of menu and submenu appears in good condition but now in preview the main label went to the main page. What should I do to tackle this problem?

    This can be due to defined States, etc-related pages. Please post screenshots of the design thus preview if it's always a problem.

    In addition, you can place the menu in master for all pages and sub-pages.

    Thank you

    Sanjit

  • Where is the model pop-up menu and how small?

    Where is the model pop-up menu and how to make the bathroom small pop-up? (huh. They do not have and emoticon for furious.)

    The system of 'Help' I searched for hours.  All I want to do is find a picture of a blue sky empty to put behind the two aircraft.

    In the Toolbox, select the paint bucket tool

    In the bucket of paint at the top options, spend the 'foreground' 'Pattern '.

    Click on the pattern to the right box, and the configuration dialog box appears.

  • menu item from openes when the button is clicked

    Hi friends,

    My monitor have buttons and menu items. When I click on the button using wheel, click the fucton button works, but it will also open the menu items.

    How can I block the menu item when I press the button.

    Thanks in advance...

    use 'ButtonField.CONSUME_CLICK '.

  • The key to the label using custom in Lightroom 6

    I'm not getting something on the definition of the custom label (white label) for a group of photos.  The last discussion I found on it's back in 2010 with LR4.  I have a group of photos during a shoot, I want to put custom label.  All other color labels can be defined by clicking on the photo (or a group of photos) and pointing to the "color Label" and then selecting the color.  The custom label does not appear in the selection process.  What I'm missing here?

    By George, I think I've finally managed!  Trick is to change the IPTC Metadata presets.  Right-click on an image and select the preset metadata and change the presets at the bottom of the menu.  Fill in the Label field in the base at the top and all IPTC section that you want to include.  Then create/save the preset.  Which added a 7th "Preset" (white) to the column label in the metadata field in the library filter.  To assign to a photo or group of photos, select the photo, right-click for the shortcut menu, and then select the preset metadata.  The following menu should have your Preset predefined metadata.  Click on that and your done.

    Hope this helps others who may have been confused by this.  Thanks to those who gave me entry as well.

    Stephen

  • How can we change the labels of fields in the query of the adf please?

    Hello, I would like to change the labels field in a query of the adf, as they were created by default by oracle.

    The only found code is:

    <af:query id="qryId1" rows="6" headerText="Search" disclosed="true" maxColumns="2"
                                value="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
                                model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
                                queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
                                queryOperationListener="#{bindings.ImplicitViewCriteriaQuery.processQueryOperation}">
                        <af:inputText value="#{bindings.PrtDesc.inputValue}" label="Desc"
                                      required="#{bindings.PrtDesc.hints.mandatory}"
                                      columns="#{bindings.PrtDesc.hints.displayWidth}"
                                      maximumLength="#{bindings.PrtDesc.hints.precision}"
                                      shortDesc="#{bindings.PrtDesc.hints.tooltip}" id="it3">
                          <f:validator binding="#{bindings.PrtDesc.validator}"/>
                        </af:inputText>
                      </af:query>
    

    Hello

    If you use ADF BC, set flags of the UI on the attributes of the View object for attributes and these will make labels

    Frank

  • How to set the label of 'other '?

    I should have known that at some point (or set it by accident), but I can't figure out how to set the other label (white) now...

    THX,

    R

    areohbee wrote:

    Yes, I used 5 labels I can put (red, yellow, green, blue, violet - the name of which depends on all of the selected label), and another called 'other' (white) that has been applied to some pictures. I do not see how it has implemented and although its pretty easy to remove or change, I don't see how it submit a new application, or apply it to a different photo... She is available for filtering, but I do not see how to configure.

    Right... it is impossible to define with a button.  You must change the field to label something * other * than any of the five current labels.  So, you can do it manually or you can change the games, set it and change back.  Try to go the label field in the metadata Panel, and typing in 'other' or anything other that the five current names in all of the label you have active.

  • How to disable the menu popping up when I press the ALT key.

    Is there a way I can disable the menu that appears when I press the ALT key? I use it as a shortcut on teamspeak and it's really annoying to see the menu everytime I press ALT.

    See this article:
    https://support.Mozilla.org/en-us/KB/what-happened-to-the-file-edit-and-view-menus

    If you have the menu bar to show all the time, the Alt will be disabled and hit don't reveal not the menu bar. Use show/hide toolbars for the menu bar always see in Firefox.

  • How to disable the left Alt key as the taskbar pop-ups when you try to play the game then press the left Alt key

    Original title: left disabling Alt Taskbar pop-up Menu window

    Hello

    I have problems with the taskbar. Every time I tap my left Alt key twice, then left Alt + (1-6) a context menu appears. It's the same thing as right click a tab on your taskbar for anyone who is struggling to recreate my problem. Right Alt does not cause this problem.

    It is very bad news for me as the focus of changes in context menu of what I do. I play video games in my free time and have game left keybinds for Alt + 1,2 & 3. I will support on these keybinds quickly all while playing. This will cause the context menu for taskbar activate and I'll be tabbed out of my game.

    I searched for weeks trying to solve this problem and I have not found any that is worked. I tried to disable the jump lists. I tried to change the registry for a right click on the taskbar. I saw patches of this forum and several others and nothing I found works.

    Recently, I contacted Microsoft to the it Department by phone and said they knew exactly how to fix this and if I have to pay $50 to one of their technicians have to connect to my computer that they would have this problem corrected in the blink of an eye. I find this limit extortion honestly and I hope someone had this problem and can provide steps on fixing it.

    Thank you

    Ryan LeBlanc

    Thank you for your answer, but the answer you provided is for a question that is different from what I was living. Your link has solved a problem with someone who has the taskbar pop up when their mouse/cursor passes over. My problem was to have a drop down of the taskbar appear whenever I type left Alt + 1/2/3/4 etc.

    However, I have since fixed. If there is anyone else out there with this problem, it's a hardware problem with my keyboard. I couldn't get anyone to recreate my problem by pressing left Alt + 1, etc. (although you can recreate my problem to click with the right button on a program in the task bar), so I reset my left Alt key. After resetting my left Alt key this problem does occur more (yay)

    Thank you

    Ryan LeBlanc

  • Pop-up doesn't close when you press the ESC key

    I have a Help menu where clicking commandmenu element opens a Popup. This menu is common to all pages.
    Only in the login Popup page does not close when I press the ESC key. Once the connection remains of pages ESC key works.

    Here is my code for the menu popup and order

    < af:popup id = "helpPopup" contentDelivery = "lazyUncached" clientComponent = "true" >
    < af:panelWindow id = title = "#{soembean.helpTitle 'pw1'} ' modal = 'false' contentHeight = '500' contentWidth ="900"clientComponent ="true"resize = 'on'"
    stretchChildren = 'first' >
    < af:inlineFrame source = "#{viewScope.helpURL}" clientComponent = "true" id = "if1' shortDesc =" #{viewScope.helpURL} "sizing ="none"/ >".
    < / af:panelWindow >
    < / af:popup >


    < af:commandMenuItem id = text = "#{somebean.proceduralHelpLabel"procHelp"} ' shortDesc ="Procedural help""
    "rendered =" #{! sessionScope.SimulationMode} "action =" #{viewScope.help.procedureHelp} "partialSubmit ="true ".
    immediate = "true" / >


    Please give me? no idea what could be the cause or any other solution to close the pop-up window for all hours when I press Escape key?

    Hello

    is the update in the inlineFrame when you press ESC? If yes then this is probably why

    Frank

    PS: If you do not plan to access the JavaScript popup then having clientComponent = true set is a loss of client performance

Maybe you are looking for