Menu appears with each click

Howdy, all.

I develop a form by using the API of the RIM, and for some reason, whenever I click outside of a field in the storm, a submenu appears with several choices (show the keyboard, exit, etc.).  It's embarrassing.  It also happens when I push a new screen in the stack.  How can I avoid this?

Here is an example of code, but I think it's more a question of a general nature.

        VerticalFieldManager vfm = new VerticalFieldManager(Field.FIELD_VCENTER);
        vfm.setPadding(20, 20, 20, 20);

        // Continue Button
        ButtonField exit = new ButtonField("Agree and Continue", Field.FIELD_HCENTER);
        FieldChangeListener exitListener = new FieldChangeListener()
        {
            public void fieldChanged(Field field, int context)
            {
                UiApplication.getUiApplication().pushScreen(Screens.sCallButtons);
            }
        };
        exit.setChangeListener(exitListener);
        exit.setMargin(20, 0, 0, 0);
        vfm.add(exit);

To be clear, replace the line with this:

ButtonField exit = new ButtonField("Agree and Continue", Field.FIELD_HCENTER | ButtonField.CONSUME_CLICK);

Tags: BlackBerry Developers

Similar Questions

  • Menu expands with each mouse click

    Hey guys,.

    my muse menu grows with each mouse click (open/close) in design mode, this only happens on the new version 2015.2.1

    menu bigger.JPG

    I think it's a bug. It also happens with the Accordion widget. I think they already know about it as well.

  • OfficeJet Pro 8600 appears twice in the selection of drop down menu printer with each of the different names.

    Hello!

    I recently acquired an Officejet Pro 8600 and immediately connected to my network wireless as stated in the manual. No other type of connection has been used beforehand and the operating system is Windows 7 64 bit.

    After that the installation of the printer driver appears twice each time that a program asks me to select a printer from the drop of the printing devices in the typical menu of preparation of printing.

    There is an entry for "Officejet Pro 8600 (network)" and something in the sense of 'HP95CDN' (Officejet Pro 8600). I can't remember the exact names off the top of my head, but it is the name of the printer with the 'network' in brackets in one case and a kind of shortcut ID printer with full name in parentheses in the other case.

    According to the program, one of the options gives the desired impression while the other simply causes a queue of indelible impression for the name of the unit in question that is stuck to a few KB of data transmission.

    Usually printing works with the device with the identification of the printer in its name, but I recently had a case where with LibreOffice printing only works with the other choice.

    Can someone explain to me exactly means?

    See you soon,.

    Pete

    Direct entry Wireless will be visible under menu so direct wireless is on... However, since you are able to print another icon (not the network icon) I assume direct wireless is off coz you will not be able to print from wireless directly on the printer if you are connected to the router.

    I believe that the icon of the printer (not the network icon) has a port WSD assigned and is automatically detected by the operating system and installed.

    Go to service window and check if you have any input that says function Discovery Provider Host and see if it is started. Try to stop the service, and remove the icon of the printer (not the network icon) in the print server properties.

    Restart the PC and check if the icon comes back or try to uninstall and reinstall

    Let us know the result

  • Menu appears on touchevent click EditField. CONSUME_CLICK is not an option to the edit field.

    The Menu appeared on a touchevent click an EditField.  CONSUME_CLICK is not an option to the edit field.

    He always did, but I still have to figure out what caused change to happen.  Maybe because I went to GridFields.  Anyone has any ideas on how to avoid that the menu when I use a touchscreen device and click the EditField?

    Thank you!

    When you override navigationUnclick, return false - return super.navigationUnclick (status, time). It is a cleaner way to do it and it saved my day several times.

  • Previous screens Menu appearing after button click

    Hi people,

    Do not know how to solve this problem... I'm probably just not to consume an event somewhere.

    My application is a multi-screen application. The user navigates by selecting (especially) options menu or clicking / tapping on the ButtonField. I find that when a user clicks a button in the application that pushes a new screen in the stack of navigation (in his listener to change) the following happens:

    • The new screen is displayed
    • Menu of the previous screen is displayed immediately

    If the user cancels the incorrect menu... Then opens a new menu, then the appropriate menu appears.

    I Build menu on the fly by substituting the screen makeMenu method. I call super first, and then create my own menu items.

    Buttons just run a FieldChangeListener that grows the new screen in the navigation stack.

    This behavior occurs both on my BB 8350i physical device and in the BB Storm Simulator. I use the component package 4.7.0.

    How can I stop the previous screen menu to appear immediately after a button click event pushes a new screen?

    Thank you!

    Add CONSUME_CLICK in your ButtonField constructor style bits.

  • Unexpected menu appears in the earpiece button

    This is my first attempt at development for the BB storm, and I use JDE 4.7.

    I started with a Hello World application, I found and I modified to add a simple button that says RED. When you click on I tried the wallpaper turn RED and change the button to say BLUE, when that is clicked on it turns BLUE changes back to RED button again.

    I've implemented this, use a standard listener ButtonField (which I call bhandler in my code). The program type of works, with the odd effect only on the Simulator is that when I click the button, the background color changes but a little menu appears. Anyone else seen this problem of menu? I don't expect to see a menu and I have not coded anything to ask for a menu appear when I click on this button.

    Here is my source code. The Manager is in bold. Note that the blog mess with the code, then it could be modified slightly by the smileys... All the answers that I see not why only a menu would be most appreciated... Thank you.

    /**
    * HelloWorld.java
    * Copyright (C) 2001-2003 research In Motion Limited. All rights reserved.
    */
    package com.rim.samples.helloworld;

    Net.rim.device.api.ui import. *;
    Net.rim.device.api.ui.component import. *;
    Net.rim.device.api.ui.container import. *;
    Net.rim.device.api.system import. *;
    Net.rim.device.api.ui.decor import. *;

    /*
    * BlackBerry applications that provide a user interface
    * must extend UiApplication.
    */
    SerializableAttribute public class HelloWorld extends UiApplication
    {
    Public Shared Sub main (String [] args)
    {
    create a new instance of the application
    and launch the application on the event thread
    HelloWorld APP = new HelloWorld();
    theApp.enterEventDispatcher ();
    }
    public HelloWorld()
    {
    a new screen
    pushScreen (new HelloWorldScreen());
    }
    }

    create a new screen that covers the screen, which provides
    standard behavior by default for BlackBerry applications
    final HelloWorldScreen class extends screen
    {
    public HelloWorldScreen()
    {

    call the constructor of the screen
    Super();

    Add a title to the screen
    LabelField title = new LabelField ("HelloWorld example", LabelField.ELLIPSIS
    | LabelField.USE_ALL_WIDTH);
    setTitle (title);

    Add the text "Hello World!" to the screen
    Add (new RichTextField ("Hello World!" );
                    
    First define the button handler
                    FieldChangeListener bhandler = new FieldChangeListener()
    {
    ' Public Sub fieldChanged (field field, int context)
    {
    ButtonField buttonField = field (ButtonField);
    If (buttonField.getLabel () is 'RED'
    {
    Bottom newback = BackgroundFactory.createSolidBackground (Color.RED);
    getMainManager () .setBackground (newback);
    buttonField.setLabel ("BLUE";)
    }
    on the other
    {
    Bottom newback = BackgroundFactory.createSolidBackground (Color.BLUE);
    getMainManager () .setBackground (newback);
    buttonField.setLabel ("RED";)
    }
    }
    };

    Define the button itself use Manager above, this one called RED
    ButtonField buttonField = new ButtonField ("RED";)     Create a RED button
    buttonField.setChangeListener (bhandler);               Implement the handler for button defined above
                     
    Add (buttonField);  Adds the button to the screen.

    }

    Override the onClose() method to display a dialog to the user
    with "Goodbye!" when the application is closed
    public boolean onClose()
    {
    Dialog.Alert ("Goodbye!" ;
    System.Exit (0);
    Returns true;
    }
    }

    You must add the CONSUME_CLICK to your style of button, like this:

    ButtonField buttonField = new ButtonField ("RED", ButtonField.CONSUME_CLICK)

  • 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

  • Context menu prevent from appearing when you click on?

    I get the context? menu (the one with the full Menu and options Show/Hide keyboard) when I press (touch screen) or click on a field in a listechamps.  I don't know why.

    I extended ListField as follows:

    public class TableField extends ListField {
        TableFieldCallback callback;
        public void setTableCallback(TableFieldCallback callback) {
            this.callback = callback;
        }
        protected boolean trackwheelClick(int status,int time) {
            App.DEBUG("CLICK START " + time);
            if (null != callback) callback.onclick(this.getSelectedIndex());
            App.DEBUG("CLICK CONSUMED");
            return true;
        }
    }
    

    The domain manager that contains this field implements TableFieldCallback and sets the callback object.

    The scope of the list does not contain child field, rather than the 'data' are set for each field.

    I press list (click on) a field (line) in the field and trackwheeClick() is called calls my onclick() method in my object and is processed (it loads another opinion), but the context menu is displayed, even if I returned true from trackwheelClick() of signs that I have consumed the event.

    This behavior is unacceptable, I need a way to be able to disable the context menu when you click on the field ofc.

    Note: the full menu appears sometimes, but I guess that's because I also accidentally click / tap the full menu option in the context menu that... maybe its because the context menu Gets the event of publication in the press / click don't know.

    Hey to return true on nothandled touch clear also

    and for the contact not returning true not managed navigationClick should do the job.

  • Model 48L5441DG - each time creating user menu appears

    Hello

    I have the model 48L5441DG. and whenever I click on the button that I need to create a new user account to the House!

    each time creating user menu appears instead of going to the home page of profile.

    is this a known issue?

    I checked for updates of firmware but not exist for this model.

    are there updates the firmware for this model?

    Thank you

    If you have already created the account Smart-TV the TV should save the connection data and new account creation is not required.

    Please try to reset the default TV and try again.

  • Prevent the popup "Menu" with each new screen

    I tried in vain to remove the popup "Menu" that appears down to the center of the screen of the device whenever I push a new screen in the display stack.

    Dominant onMenu(), makeMenu (menu Menu, int for example) or makeContextMenu(ContextMenu menu) attempts have all failed to reach my goal.  Here is a simple code that is affected by this problem I describe.  When I click on the button which brings me to the second screen, a context menu with only one 'Full Menu' appears down to the center of the screen.  Thanks in advance if anyone can help me to solve this apparently simple problem.

    public class TestApp extends UiApplication {
    
        public static void main(String[] args) {
            TestApp testApp = new TestApp();
            testApp.enterEventDispatcher();
        }
        public TestApp(){
            pushScreen(new TestScreen());
        }
    
        public class TestScreen extends MainScreen {
            ButtonField button1, button2;
            public TestScreen() {
                button1 = new ButtonField("Button1");
                button1.setChangeListener(new ButtonListener());
                button2 = new ButtonField("Button2");
    
                add(button1);
                add(button2);
            }
    
            final class ButtonListener implements FieldChangeListener {
                public void fieldChanged(Field field, int context) {
                    UiApplication.getUiApplication().pushScreen(new TestScreen2());
                }
            }
        }
    
        public class TestScreen2 extends MainScreen {
    
            public TestScreen2() {
    
            }
    
            public void makeMenu(Menu menu, int instance) {
    
            }
        }
    }
    

    You must set the CONSUME_CLICK style on the button.

  • ListField: menu appears after clicking navigation

    Hello members of the community.

    I have a problem with the menu displayed on the screen with ListField after navigation click event is raised.

    Here is what I do to reproduce this problem:

    -navigation click on the selected entry of the ListField control,

    -a new screen appears,

    -on this new screen, the menu appears which is defined for the screen on which is placed the ListField control.

    The click of the navigation is managed in the following way:

    protected boolean navigationClick (int status, int time)
    {
    Field = this.getFieldWithFocus ();

    If (instanceof ListField field)
    {

    MyAnotherScreen an another = new MyAnotherScreen();

    UiApplication.getUiApplication () .pushScreen (another);

    Returns true;
    }

    Return super.navigationClick (status, time);
    }

    protected boolean navigationUnclick (int status, int time)
    {
    Returns false;
    }

    The ListField is declared as follows:

    lstData = new ListField (0, Field.FIELD_HCENTER);
    lstData.setMargin (2, 2, 2, 2);

    Reminder is set in the more standard way - there is nothing special in it.

    I looked for a something, that allows to consume the click for the ObjectListField as ButtonField.CONSUME_CLICK the fact for ButtonField controls, but... so far without success. That's why I decided to write a post here.

    Thanks in advance for any help!

    I solved the problem.

    It was caused by the fact that the screen, on which the ListField control was not closed. After you have added the line, it works fine now:

    If (instanceof ListField field)
    {

    MyAnotherScreen an another = new MyAnotherScreen();

    UiApplication.getUiApplication () .pushScreen (another);
    This.Close ();
    Returns true;
    }

  • After installing firefox os native app appears with a generic icon, which is the same for each of them

    I solve problems reinstall B2G ZTE provider, but all the native application like phone, camera msg etc apperars with a generic icon without staining, it is the same for each of them.

    some app have been updated, i.e. the market and in this case a correct icon appears, but others not update appears with a generic icon uncolored, customized with the name of the application text only.

    my phone provider was movistar, the manufacturer was zte and the model is open from zte.

    I need help to install the correct icons without having to completely reinstall the system if it were possible. Otherwise, the help is to know how to reinstall B2G correct icons

    Hi Josefer,

    I'm sorry to hear that you have problems with your Firefox OS. What are the instructions did you follow to Flash your device ZTE open? Did you receive errors in the process?

    I would say the best way to solve this problem would be to reset your device.

    Warning: Resetting your phone will remove all data stored on the device, including applications, data from the calendar, e-mail accounts and settings.

    To reset the device, follow these instructions:

    1. Open the settings application.
    2. Press the button of device information.
    3. Press the button more than information.
    4. Press the Reset button.
    5. Press OK to continue or Cancel to cancel.

    If the problem persists, you may need to reflash your device using the construction and the instructions available on the download page of ZTE:

    In addition, please remember that the best place to find support for questions specific to the device is directly with the OEM, as they provide the device-specific builds.

    We hope that this problem fixed the problem you had. Please report to us if this helped!

    Thank you!

    -Ralph

  • I upgraded to firefox 3.6 recently 11, but firefox11 works well with my windows 7. It became slow and strucks on for 6 seconds for each click.

    11 Firefox hangs frequently for about 6 seconds for each click as switching between tabs, closing tabs, opening new tabs.
    by clicking a link etc,
    3.6.17 worked well, but 11 Firefox is too slow.
    problem is the same with version 4 and 4.01
    can someone please help me to solve my problem

    I'm sorry that you have problems with Firefox doesn't work is not as fast as it should. I'd like to help you here so that you manage Firefox running at great speed.

    Firefox, try to start Firefox in Safe Mode. It temporarily disables your extensions, customizations, etc. so that we can see if they slow down Firefox. If Firefox works fine in Safe Mode, then it is probably a problem with the add-on. Restart Firefox in normal mode, and then type "subject: addons" (without the quotes) in the address bar. Disable your extensions, restart Firefox between each one, until you find the troublemaker. Once you do, you can disable this add-on.

    I also see you have advise McAfee Site. I would recommend disabling that, as it is known to cause leaks of massive memory than Firefox slow down

    If Safe Mode does not work, you can also try updating your graphics card driver. Update your graphics drivers to use hardware acceleration and WebGL reading can show you how to do this.

  • Open with does not appear when I click on a URL in Firefox on my desktop

    Click right 'open with' does not appear when I click on a URL in Firefox on my desktop. The codec-c no longer works with 9 update of Firefox, so I would like to open with Internet Explorer instead until the Codec-C is compatible with Firefox again.

    Add - ons:

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • I want to move a large number of photos but don't want to unique, click each photo. I know there is a simple control function that allows to select groups of files with ' two'clicks ', as opposed to the selection of each file. Suggestions?

    I want to spend a lot of photos (they are in order) but and do not want to have to click to move each photo. I know there is a simple control function that allows to select groups of files with ' two'clicks ', as opposed to the selection of each file. Suggestions? I know it's apple 101, but I don't remember what order to press the button command, or shift, or other. Thank you

    Select the first file, then hold down the SHIFT key, and then click the last file. Or, select any file in the folder and then press command + A

Maybe you are looking for

  • Horrible 'Songs' setting in the newest update

    I've updated to the latest version of iOS, and now in the service of ipod music songs are not classified in alphabetical order as they were before.  When you click on the songs, you get the artist in alphabetical order with each of their songs in ord

  • H8-1214: graphic cards compatible Angelica

    Does anyone have a list or know what M3970AM-HP-compatible graphics cards (Angelica)?  I am currently using Asus Radeon HD 7770 Ghz card and power SUPPLY Corsair CX600M block.  I already know the R series and 700 and maximum are not compatible.  I wa

  • Passport data transfer

    IPhone 5 s 6 s.  Have app for fast password but can't seem to get my data secure to import or export or via iTunes.

  • Stop error 0x0000C1F %

    Same problem as the post above me. I did F8 and have already told him to go to the last known good configuration. It was 15 minutes ago (let him go) and it has a black screen with the green bar operation and Microsoft Corporation. (I have a Dell Insp

  • IEEE 1394 and Pavilion Elite

    This is my first post.  I will soon buy a new pc, and reflected on the Pavilion Elite series.  I'm set to zero on the e9120t.  No where on the HP site doesn't specifically list if this model has or does not have an IEEE 1394 port.  No one knows for s