makemenu problem: display of the menu, but after selecting an item, menu disappears and pops up again in the Middle after the code is executed

Hello

I have a very strange problem on BB9700 running OS5:

1. application with 2 screens, each with menu (makemenu)

2. second screen is pushed by the first screen

3. menu of second screen works as desired

4. menu of the first display shows the following behaviors:

Click on BB-let the menu appear in the lower left corner. So far so good.

After clicking the item(own item-run block is empty) menu, the menu disappears and appears back in the middle of the screen.

This is my code (even in second screen-but working there):

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

        menu.add(new MenuItem("fix menus",10,20){
            public void run(){
            }
        });

                menu.add(new MenuItem("Options",20,10) {
            public void run() {
            }
        });

    }

    protected boolean onSavePrompt()        {           return true;       }  

In the second screen, the menu works fine, but with the first!

Any idea?

Thanks in advance

Hey Ted_hopp, simon_hain,.

I found something after commenting on overridden methods (one after another):

I have replace onFocusNotify. If I comment I out completely, the menu works as it should.

If I just use the following code:

protected void onFocusNotify(boolean focus) {

}

with nothing else (not), the menu reappears after a click.

So I put the forgotten 'Super.onFocusNotify (focus)' call to the first line, and all things are working properly.

Thank you

Tags: BlackBerry Developers

Similar Questions

  • How to display correctly the code tank?

    Hi all

    I'm trying to convert the numebr decimal (0 to 127) char (ASCII code). I found the code here http://digital.ni.com/public.nsf/allkb/894CF5FE064971BF8625758400014993

    I try with several numbers, but it is not indicated the same character as indicated on http://digital.ni.com/public.nsf/allkb/475C4E4F3A638AA58625795F007EC531?OpenDocument

    For example, I tried 104, it shows '@', but it should be "h". I tried 33, it shows "@"but it should be!" (without quotes). I wonder what is the right way to do the conversion, or is the wrong way to display it?

    Furthermore, if I have a table of decimal numbers, in addition to the use of the lines and code as above for all convert them to ASCII, one by one, is that any way faster to perform the conversion? Thank you.

    Use the split of the digital number primitive > pallet of data manipulation.  If your number is a signed integer, you must be careful about the sign bit and negative values, although those who are not relevant for ASCII characters.

    Lynn

  • I downloaded a document in wordpad which displays in the code. How can I translate this document into Microsoft word or readable format

    I recently downloaded a document (wordpad.doc), which displays in what I think is the code and I can't read it. How I can translate this document and other similar in Microsoft woord so that I can read?

    Download from the Internet?

    Why you not open it in Word?

  • problem with debugging the code

    IAM using JDE 4.6. I used to debug the code until yesterday. But suddenly, I couldn't able to debug the code. When I insert a debugger, it does'nt stop there during execution. If I try inserting the debugger during execution, an error pops up "no executable code to the selected line. Help, please.

    What happens to me when I am debugging the device on the Sim Card and the code for the device or the Sim Card does not exactly match the JDE.  Recompilation and the commissioning the device or the Sim Card with the new code usually fixes it.  Give it a try.

  • increase the font size in the window display of the Code

    I recently bought one in 27 iMac and I found out that the font size in the view of the Code in split view window is so small, I read it now is no longer. Is it possible in CS3, version 9.0, to increase the font size in the part of the Code in the window display?  My eyes more thanks.

    PREFERENCES > fonts

  • have a 3 years old, nev er used to have problems with speakers toshiba laptop but now neither speakers are not working and I do not have the built-in speakers for netflix natural

    read the title, I can't get extra added on the speakers to work regularly, drives crazy me, can't hear netflix movies

    Hello

    What version of Windows are you using?

    • If your laptop uses the Realtek HD audio drivers then try to update the Realtek HD audio drivers for the last one is on the site Web of Realtek (who seems to have a lot of later Toshiba support site). After updating to the latest Realtek HD drivers, open the DD Realtek Audio Manager and enable "Loudness equalization.
    • Turn off the laptop (not a hibernation or sleep), Remove the battery and the adapter Plug and press the power on/off (nothing should happen, but it could fulfil all power remaining inside the laptop). Wait five to ten minutes and then reinsert both and reboot the laptop. For some, it seems that putting into hibernation and or "sleep" mode on these laptops cause the audio drivers to behave strangely.

    You can also try to go to Device Manager > click on the< next="" to="">

    Right-click on the driver and update or roll back to the driver

    Contact Toshiba technical support

    http://support.Toshiba.com/support/home

  • Task bar and start menu disappeared and apear as to the right of the monitor

    Start menu and taskbar appear to be on the right screen and cannot get back them.

    Hello

    · What is the shadow of brand and model of the computer?

    · Will there be any changes made on the computer before the show?

    Change the resolution of the screen on the computer and see if it helps: change the screen resolution: http://windows.microsoft.com/en-US/windows-vista/Change-screen-resolution

    For reference: get the best display on your monitor: http://windows.microsoft.com/en-US/windows-vista/Getting-the-best-display-on-your-monitor

  • Driver DVDRAM GT80N problems - 19 of the Code

    Hello

    I have a laptop HP 650 with windows 8. The dvd drive does not recognize CDs or DVDs more. In properties, it says: "Windows cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged. (Code 19). "I tried to delete the upper and lowers, but only Stoops was there so I deleted it. Then I restarted and it still does not work. Does anyone have suggestions or driver download?

    Thank you

    Joe

    Can you open the Device Manager and click on the CD/DVD drive and select "Uninstall" > OK

    To uninstall and restart the computer and let Windows redetect and reinstall the drive.

  • Adobe Photoshop CS6 Installation offline to test problems (ask for the Code)

    I tried to install Adobe Photoshop CS6 offline trial because he says "my computer is not connected to the Internet" , but I can't understand how to generate a claim code. See the screenshots. Here are my EXACT measurements. I don't know where to go from here. Thank you!

    Step 1. I click on "connect now".

    Step 2. It loads for about 2-3 minutes

    3 step, this screen appears and I click the link that says http://www.adobe.com/go/getactivated

    Step 4. This screen and hit "generate a response Code.

    Step 5. This screen and I have no idea how to get a claim code.

    111.png222.png333.png444.png555.png

    Disable your firewall setting and disable the adapter miniport network connection wireless network.

    It will work. If it doesn't please call adobe for offline activation

  • My support of virus deleted some files from my pc... now one of programs displays only the code not text

    "+ __flash__argumentsToXML (arguments, 0) +" ")) ;}'" close = "function () {return eval (instance." "(CallFunction (" "+ __flash__argumentsToXML (arguments, 0) +" ")) ;}. Open = "function () {return eval (instance." "(CallFunction (" "+ __flash__argumentsToXML (arguments, 0) +" ")) ;}. setVolume = "function () {return eval (instance." CallFunction("" +)

    Can you please provide some context?

  • ICB does not break breaking set with the code when executing the test test sequence point

    I just started using the testbed and I use it with CVI. I am running version 4.2.1 of testbed.   I'm currently trying to set up my "*.c files" of project folder appropriate to compile and run under the simple testexe of test bench and also tried the normal sequence editor. Currently, I moved all the *.c files &.h taken in charge in the same directory where the testexec.c... .not sure if it's the best place to put it?... It seems to work OK. However, I saw a few problems once the program is running. Is to show signs cited in my CVI functions but it shows as not fatal execution error: "position of unknown source, library function error, Panel, bar menu, control or a table handle is invalid" before and after pop up window panels. I tried breakpoint to the line of code in a CVI file to the project title for additional information about the error, but it seems that the breaking point is not being invoked as it does NOT run in debug in CVI mode and rather an executable. Across the service installed on the project file are *.c and not *.obj. I appreciate anyones help and give me advice. Thanks in advance

    DLL is the only way to interact with code C/C++ in TestStand, Yes.

  • Start menu disappears and returns to Windows Vista

    menu start Vista disappeared, but will return after 6 minutes

    try the system restore: http://teengeek.freehostingcloud.com/help/systemrestore/ teengeek.freehostingcloud.com

  • After you restore rundll32.exe, I restarted my computer all the icons on my desktop and all programs in the start menu disappeared

    Every thing seems to have returned to normal, but when I restarted my computer all the icons on my desktop and all programs in the start menu disappeared, and yet, all programs are always in: Control Panel > add/REMOVE programs.   I can still connect to the internet by going to-Start > my computer > view > go to the desktop. How to get back all the icons on my desktop. I tried a click right, but in vain. I also ran a scan complete antivirus. any help would be appreciated.

    Thank you Joel S. Before I could put your advice into practice a friend recommended a friend who advised me to do a system restore, which he said he would be happy to do it for me. So look like an easy option, I agreed. It seems to have solved the problem (fingers crossed), but now it seems that I need to format the hard drive. If you have any tips on formatting hard drive I'm all ears. Thank you Owen

  • Problem with the dialog box displayed when the RadioButton is selected.

    It is an application with 3 buttons button1, radio 2 and output key that uses System.exit (0)
    The problem is with the dialogs first two buttons

    1. I open the application

    2 Select a radiobutton, I get a dialog box, I click 'ok', dialog will, that's fine.

    3. I choose an another radiobutton button1 or button2, I get the corresponding dialog, BUT know I have to click 'ok' twice to keep it alive.

    I don't know what could be the problem, here is the code:

    package com.thinkingblackberry;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.PasswordEditField;
    import net.rim.device.api.ui.component.RadioButtonField;
    import net.rim.device.api.ui.component.RadioButtonGroup;
    import net.rim.device.api.ui.component.RichTextField;
    import net.rim.device.api.ui.component.Status;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.component.PasswordEditField;
    
    public class HelloWorldScreen1 extends MainScreen implements FieldChangeListener, DrawStyle {
    
        protected static final int RED = 0;
        MButtons fullscreen;
        //protected RadioButtonGroup rbGroup= new RadioButtonGroup();
        public HelloWorldScreen1() {
    
            final RadioButtonGroup rbGroup=new RadioButtonGroup();
    
            setTitle("Application");
    
            RadioButtonField rbField= new RadioButtonField("RadioB1"){
    
                protected void paint(Graphics g){
                    g.setColor(Color.ROSYBROWN);
                    super.paint(g);
                }
            };
            RadioButtonField rbField2= new RadioButtonField("RadioB2"){
                protected void paint(Graphics g){
                    g.setColor(Color.SIENNA);
                    super.paint(g);
                }
            };
            RadioButtonField rbExit=new RadioButtonField("Exit"){
                protected void paint(Graphics g){
                    g.setColor(Color.DARKSLATEBLUE);
                    super.paint(g);
                }
            };;
            rbGroup.add(rbField);
            rbGroup.add(rbField2);
            rbGroup.add(rbExit);
            add(rbField);
            add(rbField2);
            add(rbExit);
    
            rbGroup.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(Field field, int context) {
                if (rbGroup.getSelectedIndex() == 0) {
                    Dialog.inform( ""+rbGroup.getSelectedIndex());
    
                }
                else if (rbGroup.getSelectedIndex() == 1) {
                    Dialog.inform( ""+rbGroup.getSelectedIndex());
                }
                else if(rbGroup.getSelectedIndex()==2){
    
                    System.exit(0);
                }
    
                }
            });
    
        }
    
        public HelloWorldScreen1(long arg0) {
            super(arg0);
        }
    
        public void fieldChanged(Field field, int context) {
    
        }
    
    }
    

    I guess the event changed field is called twice, once deselection button1 and once to select button2. you pay your processing logic to account for this.

  • do not click on the menu that appears when I right-click my taskbar, such as the right click menu disappears when I move the mouse the right click menu

    PROBLEM: CONTEXT MENU DISAPPEARS WHEN YOU TRY ON THE LEFT, CLICK AN OPTION

    Hello
    I'm using Windows 7, and I could always
    go to my taskbar and right click
    Icons and active icons, bring to the top
    the list on the right click on the standard Menu.

    PROBLEM
    As soon as I moved my mouse away from
    the background of windows 7 taskbar to go a couple
    millimetres above on the left, click an option in
    I opened with my right click context Menu
    The whole Menu disappears, and it happens in
    Firefox version 29.01, other programs in Firefox,
    and others such as Skype.
    When I was running Firefox 28
    I didn't have this problem, can you help out me.
    Thank you
    Kev Borg

    PROBLEM
    MAKE ONE CLICK RIGHT MENU DISAPPEARS WHEN YOU MOVE YOUR MOUSE TO THE LEFT, CLICK ON A MENU OPTION IN THE RIGHT CLICK MENU.

    'YOU can not because WHEN YOU MOVE YOUR MOUSE TO THE MENU YOU JUST a RIGHT CLIC ON OPEN DISAPPEARS before you HAVE a CHANCE TO CLICK LEFT of YOUR CHOICE. "

    SOLUTION
    [ 1] GO TO control PANEL AND click HERE FOR the VIEW MENU
    [ 2] GO to "EASE of ACCESS CENTER" AT the TOP.
    [ 3] LEFT CLICK ON the MENU ITEM "theEASE of ACCESS CENTER.
    [ 4] AFTER YOU are a LEFT CLICK ON 'EASE of ACCESS CENTER' seems.
    [ 5] LOOK down THE LIST UNTIL YOU FIND to "MAKE THE MOUSE EASIER to USE".
    [ 5] THE UPPER SHOWS YOU HOW to CHANGE YOUR MOUSE COLORS ETC.
    [ 6] SCROLL DOWN UNTIL YOU SEE THIS TOPIC "MAKE IT EASIER to MANAGE WINDOWS".
    [ 7] UNDER this MENU, there is check.
    "ACTIVATE a WINDOW BY HOVERING over IT WITH YOUR MOUSE"

    [8] ARE OF COURSE IS NOT A CHECK MARK IN THIS BOX TO OPTION, IS THERE A CHECK IT AND APPLY AND CLICK OK TO SAVE.

    And now, you should have no more problems with your right click Menu disappears when you move your mouse over the menu left click on a menu item on a right click menu.

    SOLUTION SOLVES THE PROBLEM.

    Thank you and I hope this answer help all the other people who have had this frustrating problem.

    was soon KiwiKev

Maybe you are looking for