Menu opens when trackball button ' is it fair?

Hello guys '

I did several menus for my application. It's my source code to make the menu:

private class SimpleScreen extends MainScreen {

      ....

      public SimpleScreen() {
         ....
      }

      private MenuItem _menu1 = new MenuItem("Menu 1", 100000,10) {
            public void run()
            {
                   ...
                }
      };

      private MenuItem _menu2 = new MenuItem("Menu 2", 200000,10) {
            public void run()
            {
                   ...
                }
      };

      protected void makeMenu( Menu menu, int instance ) {
               menu.add(_menu1);
               menu.add(_menu2);
               super.makeMenu(menu, instance);
      }
}

Then I run the application, I saw the menu items when to push the button on BlackBerry. It's OK, no problem.

And while I support button trackball (I'm trying to say pull-out button on center of BB.), open the menu items.

Why the menu is when press of trackball? He works right? I want to do only when press the BlackBerry button.

I use the BlackBerry JDE 4.2.1 Simulator (BB 8800).

TNX guys

The menu is supposed to open if the click wheel/wheel ball is not consummated. If you consume the click trackball by substituting trackwheelClick() and returns the value true, the menu will not open. You'll probably want to first call super.trackwheelClick (), but always return true manually.

Tags: BlackBerry Developers

Similar Questions

  • DHTML menu opens behind the buttons of model

    My DHTML menu opens behind the buttons of model. Here is a little demo of the problem:

    http://Apex.Oracle.com/pls/Apex/f?p=37796:6

    Move your mouse over "Menu1", which is just at the top left of the produce area.
    The menu opens, but going behind the Cancel button.

    The list template is a couple of & lt; UL & gt; and & lt; Li & gt; Tags with the following CSS:
    #nav, #nav ul { /* all lists */
         padding: 0;
         margin: 0;
         list-style: none;
         line-height: 1;
    }
    
    #nav a {
         display: block;
         color:#FFFFFF;
         font-weight:bold;
         text-decoration:none;
         font-size:12px;
         padding-top:4px;
         padding-bottom:4px;
         padding-left:10px;
         padding-right:10px;
    }
    
    
    #nav_sub {border-left:1px solid #A7ABB0;
              border-right:1px solid #A7ABB0;
              border-top:0px solid #A7ABB0;
              border-bottom:1px solid #A7ABB0;
              background: #2E3033;
                font-weight:bold;
              color:#FFFFFF;
              width:20em;}
    
    #nav_sub a{color:#FFFFFF;
               font-weight:normal;
              }
    #nav_sub a:hover{color:#FFFFFF;}
    
    #nav a:hover {background-color:#FF0000;}
    
    #nav li { /* all list items */
         float: left;
          /* width needed or else Opera goes nuts */
    }
    
    #nav li ul { /* second-level lists */
         position: absolute;
            width: 20em;
         left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
    }
    
    #nav li:hover ul, #nav li.sfhover ul { /* lists nested under hovered list items */
         left: auto;
    
    }
    How can I fix?

    Thanks, Rene

    Add CSS 'z-index' property in the menu that has a value greater than that of the button.

    The following seems to work on your page

    #nav, #nav ul {
    line-height:1;
    list-style:none outside none;
    margin:0;
    padding:0;
    z-index:2;
    }
    
  • 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 '.

  • Brush menu opens when using the stylus

    I have a tablet of bamboo. Almost every time that I have filed my pen, it opens the brush menu and makes it almost impossible to get the work done. Its makes me crasy. I changed the settings of the Tablet, but I can't seem to stop it. Any ideas? Thank you!

    Hello

    Maybe your inadvertently pressing the side buttons on the pen? (one of the buttons can be set to a right click)

    You can define key shortcuts in the preferences of bamboo or have you already tried that?

    Which version of photoshop and the operating system are you using?

  • I have version 9.0.1 on 2 pc, both xp sp3. 1 the button "open new tab" is visible, on the other hand, the "Open new tab" button is not yet available in the menu "Customize toolbar" drag / drop. Why?

    I used the same setup file, but on 1 pc, the "Open new tab" button is available in the menu 'Customize toolbar' and can be dragged and drop on the navigation bar. On the other pc, the "Open new tab" button/icon is not yet available for drag / drop. I uninstalled firefox completely, including the settings and preferences, then reinstalled, but that has not fixed the missing button.

    Hello

    Please try to restore the default value in the Customize... window. If it is still not visible, one of the reasons could be that the button is already placed on the toolbar, but can be hidden behind a different icon or toolbar.

    ...............................................................................................................................

    Useful links:

    Everything on tools > Options

    Beyond the tools > Options - about: config

    Subject: config entries

    Information page (Alt + T) tools > Page Info, right-click > view Page information

    Keyboard shortcuts

    View without Plugins

    Files & Firefox profile folder

    Firefox commands

    Basic troubleshooting

    After the upgrade

    Safe mode

    Extensions of the issues

    Troubleshooting Extensions and themes

    Troubleshooting Plugins

    Test Plugins

  • My DVD player does not open when I click on the button

    Hello

    I hope someone can help me.
    My DVD player does not open when I click on the button.

    I tried clicking on eject on the DVD drive icon in my computer and it comes up with an error message.
    I think I deleted the cookies the other day. Who would have something to do with the problem?

    Any help would be greatly appreciated that I really don't want to send my phone to a technician.

    Hello

    Try to manually open the CD/DVD drive.
    Near the eject button, you will find a small hole.

    You can use a small object like staple and could push gently into this hole.

    Usually, this should help to open the drive manually.

  • My cd-writer/DVD disc tray does not open when I press the Open button. He is not blocked and has no disk in it. How can I me t to operate?

    Cd-writer/DVD disc tray does not open when you press the Open button, or when you use the buttons to control the media on the keyboard. How can I restore it to its operating state?

    Hi John,.

    Please let me know exactly what happened when you tried my suggestions of first and second.

    Of your most recent post, looks like you're watching the wrong part of the Device Manager. Optical drive is listed under "readers of CD-ROM/DVD-ROM". The info you gave appear under "drives". If the drive is not listed under "readers of CD-ROM/DVD-ROM" or there is no such section in Device Manager, then Windows do not see. If windows can't see it then this means that there is no power or that the drive is broken.

    When you pushed the drive back in, the player no longer has much of the book or did you have to push all the way. If the latter, it means that the drive has no power or is broken.

    With respect to the opening of the case, I guess I should ask first if it's a laptop or desktop?

    Tricky

  • Menu 'Open with' do not appear when I right click on the file

    Even if I right click on the file I want to open, the "Open with" menu are not displayed. I wish it would be a way to restore the menu "open with."

    Even if I right click on the file I want to open, the "Open with" menu are not displayed. I wish it would be a way to restore the menu "open with."

    Take a look at this tutorial:
    http://www.Vistax64.com/tutorials/140508-context-menu-enable-disable.html

    Use Option 1: via a download.
    Use the Enable download button.

    t-4-2

  • When I right click, right-click menu opens, but is on the left side. How to make it right?

    When I right click on the menu, the menu bar drop-down click menu to open correctly, down to the right of the mouse pointer, but the problem I have is that where never otherwise I right-click such as office, for example, menu opens downwards and to the left of the mouse pointer. It is very annoying and I have found no way to change this. It worked very well upward until a week ago. I did not alter the settings by default and even tried the "reset default" option under settings of the mouse, but still did not set. Help, please!

    I found the answer to this, and here's how to solve this problem, if anyone else needs it. I think, in the last update, it changed side menu under the Tablet PC settings. Here's how to fix it:

    Click Start, type Tablet PC settings

    Click on the Tablet PC settings link from the start menu search results

    In the Tablet PC Settings dialog box, under handedness, selectleft-handed.

    When this option is selected, the context menus appear on your right, which is the default setting. The only exception is that when there is not enough real estate available on the right to display screen context menu, Windows displays the menu on the left hand side automatically.

  • Office restarts itself when it is stopped with the start menu and the power button.

    Original title: stop problem

    My office will restart itself when it is stopped with the start menu and the power button. I went to the start menu task bar to ensure that the setting was correct.

    Hello

    1. Press (Windows key) + R and type "regedit" and press enter.

    Find the following key:

    Geographical area: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

    3. double-click on "PowerdownAfterShutdown.

    Then,
    Change it to '0' if it is '1' OR
    Change it to '1' if it is '0 '.

    And press ENTER.

    Then reboot andtry to stop.

    If this does not work, make sure that you change the value in regedit back to what she was original

    Try this one:

    Put the laptop to sleep then let it restart itself. Then run command prompt and

    Enter 'powercfg - lastwake. It should give you the description of what caused the alarm.

  • My CD door won't open. Is there an eject button because it does not open when I press on it?

    My CD door won't open.  Is there an eject button because it does not open when I press on it?

    Yes, there is.

    Look closely at the front of the CD tray. You should see a small hole, just large enough to insert a paperclip (fixing of paper in North America).

    Apply the necessary pressure to get the drawer open enough to be able to grasp and pull...

  • Menu mobile with accordion panel will not open when you view the phone's browser

    I'm designing a sensitive site using breakpoints to 320, 768 and 1200.  I made a menu mobile with a panel of the accordion for breakpoints to 320 and 768.  Everything works fine with the reactive site on the web browser, except when I open the menu mobile on my windows phone, the Panel will not open.  When I press the menu to open it, the menu quickly opens and then closes immediately.  I was not able to understand what it takes to keep the menu open on the Tablet and phone version.  Any help would be really appreciated.

    [Transferred to the specific forum - Mod]

    OK first off I can confirm that the accordion on this page works on Microsoft phones (Nokia) and my iphone 3

    However the site is a mess to navigate and IMO the design must be less congested to operate on a phone... tip, do not use a desktop computer to test your phone designs

    with regard to the drawings and models responive. Take a look at these

  • Unable to import photos: they are not even displayed in the import menu. When I click on the import button, LR6.3 not responding

    From fews days, I have a lot af problems in importing the photos. with LR6.3

    they are not even displayed in the import menu. When I click on the import button, LR6.3 unresponsive. And I have to force to leave LR!

    A few ideas on how to solve this problem?

    Thank you

    Hi Brigittet,

    I suggest you to please upgrade to the latest version 6.5 of Lightroom: keeping up-to-date for Lightroom

    Also try:

    • Go to Lightroom > Preferences.
    • Also please go to preferences > Performance tab and uncheck the box "use graphics processor.
    • Restart Lightroom and see if it works.

    Concerning

    Tanuj

  • With the help of A6, must create menu screen which allows the user to click a button creates a branch to other screens and return to the main menu. When returning to the main screen on which button will be gray or inactive.  How can I do this?  I created

    I am trying to imitate a piece of equipment.  I need the user to be able to click on the specific buttons that have the user to another or screens.  After viewing these screens that will be the user to the main screen where the user which buttons were pressed and which still needed to be pressed.  I create buttons image with the 3 States - who has worked except when the user returns to that slide is reset to zero, and if the user does not see the 3rd State of the button.  How can I get this 3rd State of stay after the user returns to the main screen?

    You can not 'keep' a State, that's what I said in my first answer: "you can create an image with that look of '3' State, make it invisible and show it with the same action when a button is triggered. You will need to insert extra that third picture, first hide it out and make it visible to the advanced action, which I explained. I called this additional 'Done_one' image in the example. The three States you're talking about are in a totally different way to Captivate: for down, more and up-state. You can just tell Captivate to keep a low State, it will be down when the button is pressed. Where my explanation of an additional image.

    No need for all the variables. Looks like you have a lot to learn about variables and advanced actions. I don't see another easy way to achieve what you want. It is not so difficult, tons of examples on my blog.

  • Application crashes by exiting the application through controls dial with the context menu open

    Hi, I have a weird problem which I don't know even where start problems.

    When inside the user application appears menu contextual and with open context menu press the dial button on hang up button the application leaves as planned, but as he tried to return to the app, it freezes and you have to hard reset the phone (tour market)

    He can't get on the emulator.

    Confirmed the "BOLD", storm and curve.

    You go out via UiApplication.deactivate () and re - enter via UiApplication.activate ().

Maybe you are looking for

  • Navigation bar is empty. Customize Firefox page is empty. Any ideas?

    I love Firefox - used it for years. Since yesterday, my navigation bar is empty - that is to say, there is no evidence that even if it is enabled. And when I go to 'Customize firefox' to restore the default settings, it is just a blank page. I uninst

  • Setting up Gmail in Mail app

    Hi all. I tried to put that in some sort of software forum, but there is none for the Mail application. I tried to set up my gmail accounts (I have three of them) in the mail, not including any chance application. I managed to get two of them install

  • Acer E15 BIOS V1.10 always on display as update

    Acer care showed an update of the BIOS critical V1.10 so I started it and it is still showing as update hours later! Does anyone else have this problem and they solved?  It always shows as BIOS V1.03 in the system information. Help please?

  • BlackBerry Smartphones BB docking station

    I have the Curve 9360 and bought the cradle of Amazon, but there is no much to do and not with it, for example: I can load the BB with the wire that is attached to the docking station or should I use the cable provided with the phone and plug in the

  • Download factory-installed software falils

    When I visit https://smartsource.dell.com/web/main.aspx (MY LOCKER DOWNLOAD) to download my pre-installed 3rd party software... after I click on DOWNLOAD NOW BUTTON SmartSource.MediaManager.application is downloaded and when I run it show after the e