Consume a click AND the alignment of the centre

Goodday,

I am trying to center align a ButtonField.  When I include the code

ButtonField btn = new ButtonField("Log In", ButtonField.FIELD_HCENTER);

the button aligns with success on the middle of the screen.

However, when I click the button, the popup menu will appear.

In order to get rid of it, I have to write.

ButtonField btn = new ButtonField("Log In", ButtonField.CONSUME_CLICK);

I tried to have both, but I can't achieve this goal.

How can I do to fix this problem?

Any help would be greatly appreciated.

These are values of bit - it takes 'GOLD' these together:

ButtonField btn = new ButtonField ("Log In", ButtonField.CONSUME_CLICK |) ButtonField.H_CENTER);

Tags: BlackBerry Developers

Similar Questions

  • Cannot create a new folder, right-click and the option is not there

    Cannot create a new folder, right-click and the option is not there

    Hi Walt,.

    Please follow the procedure described here: http://www.sevenforums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html

    I hope this helps.

    See you soon
    Julia

  • BitmapField consumes all clicks on the screen

    Hello

    I hope someone can help me with this problem: I have a screen that has only BitmapField is on. When you click on this 'something' BitmapField should be here which works very well.

    The problem is that even if I click elsewhere on the screen the 'click' fires.

    This is the main code on the screen:

    VerticalFieldManager view = new VerticalFieldManager();
    
    Bitmap bm = Bitmap.getBitmapResource("image.jpg"); // size 60x60
    MyBitmapField bmf = new MyBitmapField(bm, BitmapField.FOCUSABLE);
    bmf.setChangeListener(this);
    view.add(bmf);
    add(view);
    

    And that the implementation of the 'MyBitmapField ':

    public class MyBitmapField extends BitmapField
    {
      public MyBitmapField(Bitmap bitmap)
      {
        super(bitmap);
      }
    
      public MyBitmapField(Bitmap bitmap, long style)
      {
        super(bitmap, style);
      }
    
      protected boolean navigationClick(int status, int time)
      {
        FieldChangeListener listener = getChangeListener();
        if (null != listener)
        {
          Dialog.alert("Clicked");
          listener.fieldChanged(this, 1);
          return true;
        }
    
        return super.navigationClick(status, time);
      }
    
      protected boolean touchEvent(TouchEvent message)
      {
        /*
        if (TouchEvent.CLICK == message.getEvent())
        {
          int index = this.getManager().getFieldAtLocation(message.getX(1), message.getY(1));
          if (index == -1)
              return super.touchEvent(message);
          Field field = this.getManager().getField(index);
          if (field != this)
            return super.touchEvent(message);
    
          FieldChangeListener listener = getChangeListener();
          if (null != listener)
            listener.fieldChanged(this, 1);
        }*/
        return super.touchEvent(message);
    }
    
    }
    

    In the touchEvent method is a point that I also tried - but that didn't work either.

    The fieldChanged Manager is as usual:

      public void fieldChanged(Field field, int arg)
      {
        if (field instanceof MyBitmapField)
        {
          MyBitmapField bmf = (MyBitmapField) field;
          Dialog.alert("Clicked: " + Integer.toString(arg));
        }
      }
    

    I'm actually on the 9550 Simulator.

    Can someone please help me and tell me what I need to do to avoid that the click event is fired even if I click outside the BitmapField (I also put a border, just to make it visible, it is not expanded).

    Thank you very much

    That's exactly how BlackBerry works, even if it is IMHO pretty buggy: the key CLICK event is translated into navigationClick() in the field that currently has the focus. The problem lies in the fact that EVENT moves the focus to the field under him that if there is an active field where you press the screen, otherwise the focus remains where it is.

    To overcome this obstacle, program your touchEvent similar to this:

    protected boolean touchEvent(TouchEvent message) {
      if (TouchEvent.CLICK == message.getEvent()) {
        int x = message.getX(1);
        int y = message.getY(1);
        XYRect myExtent;
        getExtent(myExtent);
        myExtent.translate(0, 0); // getX, getY values are relative to this field's upper-left corner
        if (!myExtent.contains(x, y)) {
          return true;
        }
      }
      return super.touchEvent(message);
    }
    

    You can allow a 'near miss' avoid the frustration of users - extend the myExtent in any quantity you want of each side.

  • sites Web unwanted/requested is automatic when you click and the input field

    When I click on a field to enter a code, name, etc., or select a link specific other independent link is presented in a new tab. This happens all the time, but at least 90% of the time.

    is firefox browser by default on your system and what are these links (ads...)?

    When you try to make another browser default and unwanted links and then begin to open up to the other browser and then some kind of malware is active on your system, but it does not affect firefox in particular.

    Please run scan also of your system with various other tools such as the free version of malwarebytes, microsoft safety scanner & kaspersky security scan.

  • 3 clicks and slide forward with Pause button in the timeline

    I found that if there is more than 3 boxes to click on a slide, the slide advances even with a transparent page button as an attempt to pause the slide advance.  Is there a reason that this happens and what kind of workarounds are suggested.

    I got the boxes to click as a pause until the user clicks on and without, it does make a difference.

    Thank you in advance!

    Sunshine

    Hello

    This sounds like there is a fundamental misunderstanding of objects and timeline.

    Buttons and boxes click stops normally slide they are on up to that the user performs an action that causes the playhead to resume playback. Consider the image of the timeline below:

    (You may need to click to enlarge)

    Note that the slide is timed for six seconds. The click box is timed for three seconds and will pause at the end as indicated by the pause icon. ( || ).

    Notice that the button stop to 1.5 seconds. So if you click on the button and the Pause released, assuming that the action of the one "continue" button, the slide would break again at the second three score because that's where the click box is a break.

    So lets assume there are three click boxes and a button. Each click box is staged to pause the slide at different times.

    In the image above, click box 1 will pause for a second. If the user clicks and the continuous blade to play, he will then break again during the second two mark as Click Box 2 stop there. And the third click box stops at the mark three seconds. But if you look carefully, then don't touch. This means that if you click on the third click box, the break is released and the button is always visible, but it is not pause the slide as it was before.

    If your installation, you probably need to stage the point break from the button a little further on the timeline.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Foxfire to access a word by clicking on the listed web site doc?

    I have a list of sites on a word document in the past, I could ctrl/click and the site, and it would open the Mozilla Foxfire. How to restore this function?

    Usually, if you just put Firefox as default browser should not be no problem.
    What happens when you try this?

    I also saw that you have a few extensions that require updates:

  • The single Win Explorer Navigation pane click on the name of the folder to expand the subfolders

    In Win XP, you can even click on the folder name to develop the next level of subfolders.

    In Win 7, it takes a double-click and the > is difficult to achieve.

    What a pain.  How can get fixed?

    Other than replacing by another file manager.

    Hello

    I understand that you are facing difficulties during the expansion of the subfolders on the Windows Explorer Navigation pane. I understand the inconvenience.

     

    You must expand the tree first and then do the following.

    1. open WindowsExplorer.

    2. expand and click on Tools folder options -->

    3 in the navigation pane, select the check box to display all records and extend automatically to the current foldedr and click ok.

    You can also follow the steps in the article.
    http://support.Microsoft.com/default.aspx/KB/126449

    Hope it will be useful. If you still have questions, please reply and we will be happy to help you.

  • Do all click on the required boxes before moving on to the next slide

    I created a screen with three areas of click and the next button. The learner will need to click on all three before click boxes he can click next to move to the next slide. If they do not click on all three boxes, that they must get a message saying: they need to view all content before continuing. Does anyone know how to program the next button to require the three click on boxes to be clicked before proceeding?

    Thanks in advance,

    ~ A

    Issue has been addressed several times in this forum. You don't need to program the next button, but click areas. I guess they don't have to be clicked in order? In this case:

    1. create three user, for each box click variables: v_one, v_two, v_three and give them a default value 0
    2. hide the next button (in the Properties Panel - since I don't know the version, wrong in detail)
    3. for each button click on create an advanced conditional action with two decisions:
      • First decision is a standard simulated action "always."
        IF 1 is equal to 1
        Assign the v_one with 1 (change of variable in the actions for the other boxes two click v_two, v_three)
      • Second decision checks the value of these three variables
        IF v_one is equal to 1 AND
        v_two is equal to 1 AND

    v_three is equal to 1

    See the Bt_Next

    Be sure to have the suspension of the next key point later that the point of putting paused click boxes. This means that we need to shorten the timeline of the boxes to click and check the properties of the button sync

    Lilybiri

  • Why does firefox 16.0.1 allows me not to click on the buttons in the top 40mm under the banners, if I can get to them by tab to a button, and then press 'Enter '?

    It doesn't matter what web page I'm on, top 40mm or so of the screen is a dead zone to click on buttons or links. for example, in Google, I can click a link further down the page and are transferred to the new article - but if I had to move the element to the top more near the top of the page the link would no longer operate.

    I can go to a link by repeated use of the "Tab" key until the button or the link is shown and then press 'Enter' to use the link, but this is potentially very time-consuming if there are many links on the page.

    I use a Toshiba Satellite L750 loaded with Windows 7 and Firefox 16.0.

    Problems with the buttons and links at the top of the page does not can be caused by an extension as the toolbar Yahoo! or Babylon that spans both down and covers the top of the browser window and therefore links and buttons in this part of the screen not clickable.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do not click on the reset button on the start safe mode window or make changes.
  • I click on the botton of start and type msconfig and the area off I click Service and discovered that 80 Microsoft has been stop mark what's causing this and how can I solve the problem

    I click on start and type in msconfig research and a box has opened and then I click on the Service and 80 this was mark stop. They all register of microsoft corporation. I believe this, why I had some problem with my computer.

    Hello

    There may be no problem that many Services start and stop on request so everything can be normal.

    Start - type in the search box-> control of the superior and right click on - RUN AS ADMIN.

    Or Control Panel - Administrative Tools - Control Services.

    To check the default settings for Windows Services:

    Windows 7
    http://www.blackviper.com/2009/01/13/black-vipers-Windows-7-service-configurations/#more-2989

    Windows 7 Service Pack 1
    http://www.blackviper.com/2010/12/17/black-vipers-Windows-7-Service-Pack-1-service-configurations/

    BlackViper - for Vista SP1 - Services - all return to their default values.
    http://www.blackviper.com/2008/01/28/black-vipers-Windows-Vista-Service-Pack-1-service-configurations/#more-3020

    BlackViper - for Vista SP2 - Services - all return to their default values.
    http://www.blackviper.com/2009/05/31/black-vipers-Windows-Vista-Service-Pack-2-service-configurations/#more-2991

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Click and hold the windows bar blocks the execution of LV

    Hi guys

    I have a real time data acquisition application which usually is runnning full screen, and as such, I have encountered this problem before, but now we have moved to a scalable scheme and it becomes a problem...

    When you click on and hold the bar title of a VI running windows, LabVIEW hold completely running the application for a second round... To be more specific: If you just click on it and move the window instantly is not a problem, but if you click and hold the left button on the title bar of the windows of the VI / .exe running, execution stops for nearly a second.

    For acquisition of data in real time, it's quite a long time to strangle the reading process.

    I tried this on two different brands of PC and I can reproduce at the same time.

    Does anyone know what causes this behavior and, eventually, how to work around it... VI has been tested on XP and LV 8.6.1

    PNG joined something 'very complex' code to illustrate the problem

    Thanks in advance.

    This question has been asked before, and Lynn provided the same advice that I was about to suggest - create a separate UI than the DAQ VI VI so that they function as 'independent' (I use that Word loosely) process. The DAQ VI acts as a loop of producer supplying the consumer UI VI, where the 'buffer' that is allowed to fill in between is a queue, not the buffer very limited hardware.

    Sorry to break the news, but if you want to solve this problem, probably as the only solution is to have several VI for your two processes. (By the way, I am able to confirm the delay of 500-600msec when clicking on the title bar in Windows 7 Windows uses a very recent version of LabVIEW)

    http://forums.NI.com/T5/LabVIEW/mouse-down-in-title-bar-momentarily-freezes-VI/m-p/868903?requireLog...

  • I want to view the properties of folders of files and the size of the files used on the right by clicking on them and the properties of the workstation to see the disk space used. __

    I have trouble finding the disk space used by files and folders individually and when I try to know how much is consumed and free by right click on my computer.  This was easy in XP, but I can't get the answers I need to analyze which uses space, where and how.  What is happening with this?

    Hi NativeLegal Eagle,

    Usually, right-click on the file or folder and clicking the properties option will give the details of the file or folder. The details include, type, size, location, size of the file on the disc etc.

    Make a right click on my computer will not give the details of available disk space on the computer.

    If you want to know the amount of space consumed by a program, then it can be found in the Add/Remove Programs window.
    a. Click Start, click Run, type appwiz.cpl, and then click ok.
    b. in the list, we can find the total space used by individual program running on the computer.

    Note: If nothing is listed in the file properties window or a file, then provide us with more information, so that we can better help you.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I have the print head and the alignment of the problems with our officejetpro8500 910 a.

    We noticed that the cyan ink was not printing. The product is out of warranty about five weeks before we noticed a problem. We have replaced all the ink with the new hp ink cartridges. We have tried printhead cleaning several times until the third level cleaning when cleaning the print head has failed. We tried to align the printheads without success. We have been dealing with this during more than a month now. We have only 440 pages printed during our first page of self-test diagnostics. Our print head shows that it is under warranty until April 4,2012. We consulted a repair center. We have exausted all the other options until the replacement printhead. We changed to print in black only. Now, she wants to print a test page everytime we try to print something. Ink, we bought at costco for this printer was a third of the price of a new model of 8600. Please help before my wife beat me with this printer!

    If the printhead says it expires April 3, 2013, so the date of warranty.  You should be able to get a replacement print head by contacting technical support of HP and good news, it should be free, since the part is under warranty.  You can join the 1-800-474-6836 technical support to the United States and the Canada International users click here.  Let me know what happens.

  • Alignment of Group at the centre and at the bottom of the artboard?

    How can I align a group of shapes in the Center and at the bottom of the artboard? I select forms, group them and choose horizontal centering and vertical align the base, although nothing is happening.

    You must check "Align to the work plan" first of all, it is located in the lower right of the palette of transformation. If you don't see it, click on the fly on the menu and choose "options".

  • When I right click on the video, delay and slow browser

    I right click on the video or flash (.swf files) and firefox browser is slow down and 3 ~ 4 seconds later it works
    I use window 10, 64-bit.
    This does not happen in the browser Chrome or IE.

    Check this box:

    • see if there are updates for your graphics card disk drivers

    https://support.Mozilla.org/KB/upgrade-graphics-drivers-use-hardware-acceleration

    • Disable protected mode in the plugin Flash (Flash 11.3 + on Windows Vista and later versions)

    https://forums.Adobe.com/message/4468493#TemporaryWorkaround

    • turn off hardware acceleration in the Flash plugin

    https://forums.Adobe.com/thread/891337
    See also:

Maybe you are looking for

  • Download speed Cut

    So I just bought the NETGEAR Nighthawk 7000. He set up my modem in router mode. It is very good. But I noticed a decrease in download speed. Before, when I was connected directly to the modem, I have 130/Mbit/s, but now I get a solid 94/Mbps. I have

  • control the order of the locations

    When I draw several waveforms, or several tracks on a XY plot, the final track is "underneath" those who preceded him.  LV 12.x, can I change the order of tracing, other that by changing the order of the elements in the table used to manufacture the

  • Build 64-bit DLL

    Hello I'm with LabWindows/CVI 9.0.1 (375) under Windows 7 64 bit and I need to build 64-bit DLL. According to this page http://zone.ni.com/reference/en-XX/help/370051P-01/cvi/programmerref/creating32bitappsversus64bitapp... "" "" I should have a menu

  • On Facebook, I can't upload photos

    When on facebook without browsing button happened, cant rght click my mouse on the desktop is when that option is possiable... weird original title: WHY I CANT DOWNLOAD ANY PICS?

  • I can't locate the contents of what was in the folder 'my documents '.

    I recently upgraded to vista XP, I can't locate the contents of what was in the folder 'My documents' anywhere. When these files is passed or they deleted in the upgrade?