Focus BasicEditField and buttons problem

Objective:

-------------------------------------

To develop Blackberry app without sequence of focus problem when using the BB with trackpad

The problem:

--------------------------------------

I have 5 BasicEditFields and 5 buttons. All objects are aligned vertically. When I move the finger on the trackpad, update doesn't move from one BasicEditField to another, some are fried, and this happens also with buttons, for example, when the focus is on the first button in the row, and then for some reason when I move the finger on the trackpad button next emphasis is not the one below , but attention "jumps" to the last button. Is possible to set 'order of sequence focus' or something like that?

If you have Blacberry with touchscreen is not a problem, but if develop you some app for example BB Curve 9360 which has only trackpad, so you cannot select all items.

Software used:

------------------------------------

Eclipse SDK Indigo version 3.7.2.

BlackBerry Java plug-in 1.5.0.201112201607

Operating system:

-------------------------------------

Win7 64 bit

Well, I have the solution

Don't know why it works, but it does.

I did two things:

1.)

I replaced .add with insert and then add Index numbers

2.)

This added to the code:

protected boolean navigationMovement (int dx, int dy, int, int time status) {}
Returns false;
}

I tried without step 2). but then focus jump bad, in any case, it now works as it should.

Thank you all for your time and your suggestions.

Tags: BlackBerry Developers

Similar Questions

  • Repeat the header and button problems

    I've been finding dig me deeper and deeper into Livecycle lately, our office is trying to convert all of THE forms in pdf format. This was a bit of a puzzle to me.

    I finally understood how automatically scroll to the next page, a week or two ago (to my GREAT relief) the text. So now I'm on the next confusing problem.

    I need to have a header to repeat from one page to another, as well as data that the user enters in the fields. I tried to accomplish this by placing the fields I want to be repeated on a Master Page. Which certainly makes them repeat as I wanted-, but the inputs do not seem to go from page to page. How to make this happen?

    My second problem, I ran in here it is - I have a table of contents page I need essentially "duplicate", according to the needs. For example, they run out of spaces and need more, so they click on the button to add another page to the table of contents - all other pages, moving down from there. This is a pretty important thing for this form to do so, as later I'll add more pages that need to do the same thing. It would be great if I could reach (with a minimum of programming), because he would smoke less our separate 21 form into one - to get rid of the need to keep track of page numbers ourselves and by reducing the amount of data that must be re-entered.

    I appreciate any help! I have also attached what I have so far help along any suggestions.

    I'm glad that the first problem is resolved.  You can actually apply the same principle to make a whole page repeatedly.  If you the repeatable subform is the size of the entire page, whenever she repeats a new page will be created.

    As to why it doesn't work, my guess is that you are not working with a dynamic PDF.  There are three types of files, you can process in the designer: a static PDF, a dynamic PDF and an XDP (XML data package).  Dynamic PDF, that's what you want, then when you save your file, make sure that it is like that guy.  You must also enable dynamic features in the properties of the form.

    Go to file > form properties.  In the 'Default' tab, set the PDF Format to "Form XML dynamic."  In the "Overview" tab, set the Type of Preview for 'Interactive form' and Preview Adobe XML form as 'Dynamic XML form.'  This will allow the form return to PDF in preview mode PDF dynamic.  It is a common thing to have to deal with.

    Try this, hope it helps.

    Ryan D. Lunka

    Cardinal Solutions Group

    [email protected]

  • Problem with wheel scrolling and buttons on Microsoft mouse optical basic v2.0 in Vista

    Hello recently, I logged on to my computer and found out that my laser mouse does not shine by the sensor and the pointer didn't budge when I moved the mouse wheel works only the buttons and scroll

    Why what happened?

    wheel scrolling and buttons on my mouse works nothing else don't

    EDIT: im using a basic v2.0 mouse Microsoft Optical

    Nope it na no:(mais c'est correct, je pense que c'est un problème matériel et j'ai acheté une nouvelle souris qui fonctionne très bien)

    but thanks for your help when even :) as I'm not sure how this forum works, but I think a mod should close this question

  • My Firefox exit and gives a "not responding" message once I used Google Mail. I tried to boot into "safe" mode and the problem persists.

    I have a question where Firefox wont ' quit and give a message "not responding" after I've been using Google Mail. It works fine when I'm not using this program. I tried Safe Mode and the problem still happens when I go on Google Mail, so it is not connected with modules, extensions, etc.

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.

    Note: This will make you lose all the Extensions and preferences.

    • Sites Web open is not recorded in less than 25 versions of Firefox.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • Satellite L650-1EQ - black screen and overheating problems

    Hello

    I have a problem with my laptop Satellite L650-1EQ.
    A few days ago my laptop was overheated quite often.
    I would like to start playing a video game and the computer could actually turn off after 10 minutes of playing it.

    I realized that this was getting serious so I stopped using my computer to play games and I decided that I need to clean it. However, I was looking for online on how to clean up my computer and then my screen turns white!

    I didn't know what happened and was very scared.
    I turned off the computer.

    The next day I turned on the computer to see if it was good, and the screen was black however the laptop power light comes on and I hear the vents work.

    I turned on the computer and tried to start it again, and the computer started fine.
    The image appeared and the problems disappeared.
    But I knew that something bad was about to come so I took the laptop computer repair technician.

    I told her what happened.
    He has used the vacuum to "clean" the dust of the computer and told me to go back if the computer kept a overheating.

    I restarted the computer again when I came home, and after an hour and a half the computer screen turns white but I don't think that it overheated. : s

    I tried to start the computer and the screen is black, no picture, the only light on is the power one and I hear the vents work. I tried of transformed market but now it just stays as if it were now.

    I tried on another computer for solutions such as the battery and pressing the power button for 2 minutes and other things, but nothing has worked. I don't know what to do so I decided to create a thread to get answers: s

    Please help me, thank you!

    PS: I'm sorry for my English, I know that's not the best

    Hello

    This does not sound very good boyfriend. I'm afraid that there could be some sort of dysfunction material Mr. something like the problems of graphics card or motherboard issue.

    You can try plugging the external monitor to the laptop just to see if something would be visible on 2nd screen.
    But if nothing will appear on the 2nd monitor, I think that the chip of the graphics card died :(

    Of course, this is just my personal opinion and a laptop computer technician must check the laptop to know what part of the laptop could be faulty.

  • HP Pavilion 17-f065us: power and buttons f6 (Mute) remain lit after a stop on HP Pavilion 17 - f065us

    I have upgraded to Windows 10 in October 2015 and everything worked very well until about two weeks ago, I noticed that when I would stop my computer Power and buttons f6 would remain lit.  I would go ahead and close the lid of my but next time I would go to to open they would always be lit.  I have to press on and hold the Power button until the lights go out.

    Hello

    Try disabling the startup of Windows 10 hybrid - you can do the following.

    Open settings and select System.  Select food and sleep, and then click additional power settings - in the next window, click on "Choose what the power button" in the left pane.

    In the next window, click on "Change settings that are currently unavailable" (close), then Remove the check mark from the box against 'Turn on a quick start (recommended) '.  Click on the button Save the settings, and then close open windows and stop the laptop by right clicking on the icon from the Start Menu, select prompt (Admin) and click 'Yes' to the uac prompt.

    Type (or copy and paste) the following command (including spaces) and click Enter.

    Shutdown /s /t 0

    Start Notepad and let Windows take over completely for a few minutes before checking if the lights now now disable to stop correctly.

    If this has fixed the problem, it may be useful by turning the quick start back on - sometimes simply remove and re-create the file will solve the problem.

    Kind regards

    DP - K

  • Keep the Focus on the button after mouse click

    Hello

    I have a button in my VI that triggers a function. I would like to know how can I keep the focus on the button after clicking with the mouse over it? I ask that because I want that after the first click, the focus is kept on the button then I can activate the button with the space bar.

    I know I can hit the button with "tab" and then use SPACEBAR, or I can put another key to toggle this button.   But the behavior that I'm trying to get is: 'after the first click on the button for the first time, emphasis is stored on it and then I can use the space bar to activate the button.

    Ideas?

    Thank you.

    Dan07.

    I found the solution. Using a property node, set to True KeyFocus.

    Thank you.

    Dan07.

  • Windows and buttons locked tab appearance on screen

    I don't know why, but my windows and buttons drop-down menu is locked to the appearance on the view menu tab

    Here is a picture http://imageshack.us/photo/my-images/199/probro.png/

    My profile
    Intel Core i3
    3.10 Ghz clock speed
    Intel High Defination Familly with 1024 MB of VRAM graphics
    Windows XP Professional SP3 32-bit version
    4 GB OF RAM
    500 GB hard drive
    Help me

    Hello

    • How long have you been faced with the same question?

    You can view these methods:

    Method 1:

    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353
    Note:
    How to configure Windows to use a Normal startup state
    After you have used the boot is a way to solve your problem, you can follow these steps to configure Windows XP to start normally.
    1. click on start and then click Run.
    2. type msconfig and click OK.
    The System Configuration Utility dialog box appears.
    3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.
    4. When prompted, click on restart to restart the computer.
     
    Method 2:
    You can check in another user account.
    How to create and configure user accounts in Windows XP
     
    Method 3:
    I also suggest you to update display drivers on the manufacturer's Web site.
     
     
  • What do you do when windows and buttons is gray out?

    Hi, my name is Rhionna and I have a problem on my Windows XP Service pack 3. Well, last night, I scanned my PC for registry errors there were some and I fixed them, but now I can not apply visual styles. Windows and buttons in properties is grey outside, it wasn't before but today I went to a link to a website to try to repair the files in my theme after that, it was gray would be out so what do I do? :(

    Registry cleaners are dangerous programs.  I do not recommend their use for these sorts of reasons.  Your best bet at the moment is to restore your registry to a time before you had this problem using "System Restore".  One of these two methods, you should get going again.

    "How to restore Windows XP to a previous state"
      <>http://support.Microsoft.com/kb/306084 >

    If you cannot start the program of the above procedure, or if it fails to restore, then try this:
    "How to start the System Restore tool by using the option of safe mode with the command prompt in Windows XP"
      <>http://support.Microsoft.com/kb/304449 >

    HTH,
    JW

  • Focus of radio button (should be easy)

    When you have a group of radio buttons and radio buttons you set the button of the radio as FOCUSABLE or do something else to operate the myradiobutton.isFocus ()?  I'm testing to the development in navigationclick but I still don't see not the radio button with focus - even if it is highlighted and if I hit enter it is activated.

    I'm in a pop-up window.  I develop for the 4.2.  Just below the Radio buttons is an objectlistfield and this area is still active even if the radio button is selected and functional if I hit the enter key.  It's almost like radio buttons are on the top of the objectlistfield or something but I didn't something fancy to try to put one over the other and if the list is empty, I don't see the "* void *" is located on top of the radio buttons, and vice versa.

    //The radio definitions
    RadioButtonField radio1, radio2;
    RadioButtonGroup rgrp;
    
    //The radio group and button creation
    rgrp = new RadioButtonGroup();
    radio1 = new RadioButtonField("Phone", rgrp, !saveToSD);
    radio2 = new RadioButtonField("SD", rgrp, saveToSD);
    
    radio1.setChangeListener((FieldChangeListener) this);
    radio2.setChangeListener((FieldChangeListener) this);
    
    // Where I am testing for navigationclick
    protected boolean navigationClick(int status, int time)
    {
      if( radio1.isFocus() || radio2.isFocus())
      {
         super.navigationClick(status, time);
         return true;
      }
    
      -- if radio buttons don't have focus the next section of code will get the objectlistfield selection and take action --
    

    Am I missing something simple (like a task to put the word FOCUSABLE)?

    Thank you
    Craig York

    Thank you Rex - you put me on the right track and I hacked together something that works...

    Details:

    getFieldWithFocus returns the VerticalFieldManager - not very useful

    getLeafFieldWithFocus returns the field I really want

    After several iterations of trial and effort I finally just changed my code to this:

    Field tmpfield = getFieldWithFocus();
    Field tmpfield2 = tmpfield.getLeafFieldWithFocus();
    
    if(tmpfield2 != fileList)
    {
       return super.navigationClick(status, time);
    }
    
    // fileList is my objectlistfield so if I am not processing that just let super handle this navigationclick
    

    Note I have also now use your Super return... instead call super and returning true - it makes much more sense.

    Thank you VERY VERY much for sending me in this way.

    Kind regards
    Craig York

  • ButtonField focus in events management problem

    Hi all

    I have this button that starts a background thread to do something of your time. When I push the button and run the wire the focus is lost. Somehow the focus of the button is restored after the background thread is completed.

    Here is a code snippet:

    ButtonField button = new ButtonField("start");
    button.setChangeListener(new FieldChangeListener() {
        public void fieldChanged(Field field, int context) {
            startProcess();
        }
    });
    
    private void startProcess() {
        new Thread(new Runnable() {
            public void run() {
                // do stuff
            }
        }).start();
    }
    

    Why the button loses focus when a background thread runs?

    Thank you!

    Try to instantiate your button with... New ButtonField("start",ButtonField.CONSUME_CLICK);...

  • HP Pavilion dv6 6120sb early and watch problem

    My computer HP pavilion dv6 6120sb laptop has a few problems:
    Sometimes when I push the power button it looks completely dead and I mean no response, no lights, no noise, nothing.
    I always have this problem when I just have it turned off.
    So when I wait for a while (from 2 to 20 minutes) it works again.
    But this isn't the only problem, when the screen turns off automatically it turns over when I move the mouse.
    And I can't get him out of sleep with an external mouse (own keyboard not responding any more) and no screen after waking up, but I hear it's there by a few windows sounds.
    Since I am a computer scientist, I totally disassembled the laptop 2 days ago and the problem has been resolved! Until today
    I removed the battery, pushed the power button for 20 years and even flashed the BIOS again by an official tool from HP but nothing resolved.
    My opinion is that there is a problem with the sensor cover (what seems to be a magnetic mechanism) or the card supply, but how can I solve it?
    PS: laptop is 2 weeks out of warranty and I really need it for school!

    Thanks to all who tried to help me.

    I solved the problem of deleting a component and making a bridge between the 2 contacts.

    As I thought it was the sensor cover on the power supply Board which is known as SW3.

    I measured all contacts of the component, and then the CRS gave me 3.3V, Out was only 1.1V (without a magnet).

    When a magnet was near him, has given to 0V.

    So I deleted the component and filled the will of the VCC. Now, I don't have any sensor cover more (I don't like on this subject) but my laptop working again as it should be.

    Contact me if you want more information.

    (The photo was taken before that I deleted SW3 and filled the 2 contacts on the left)

  • Just bought Wndows Vista and having problems with the port for Palm 125

    I just bought a Windows Vista-based computer and have problems with getting my 125 Palm to synchronize with the desktop computer.  I get an error message saying: "No available Com1" what should I do?

    Thank you

    Frustrated

    Don't ask me the procedures step by step that I did, but I finally success!  I uninstalled Palm Desktop and started from scratch.  I unplugged the Hot Sync cradle by the USB port, then I installed Palm Desktop from my drive and then update Palm Desktop on the Palm for Palm M125 site.  It still does not, I manually added a port and manually changed to COM1.  I then pressed the Hot Sync button and in the Device Manager, a folder has become available "device named" with Palm Desktop as a subfolder.  It is always active, I updated my computer for Palm USB driver.  Miraculously it worked.  Thanks for your help, but as usual everything it needed, it was patience and trial and error to solve the problem, since it does not seem to be a quick fix related this topic.

    Message relates to: Palm m125

  • Definition of the label you want its width (and button)

    How can I pay for my labelto preferred size to the width of the text there? I have an label, the TextField and button all in one line in a GridPane, using FXML. The label is in (0, 0), is the TextField (0, 1) and the button is in (0, 2).

    My behavior wanted would be for the Label and Button , take just enough space to properly display text and the TextField in the Middle look after the rest of the space. I'd rather not simply understand the width of the text and to hardcode the values, as that could create problems if I change the text later, and I prefer not having to calculate the width and then set the width by default in this way, because it would probably be to write code outside the FXML file and to my knowledge calculation of the width of the text in JavaFX is a hack at best.

    Add

      
    

    within these two the tags and.

  • Delete and printing problem

    Hai,

    I put two forms togethet and now my button Delete (wis) clears all instead of a single row, whats that went wrong?
    I did the buttons so that i can delete a line, if a child on my Department has to go, please help.--> see pdf, pages 2 and 3

    I have also the problem I want to only print that one page with my button rather that the pdf file of hole, does anyone now how I can solve print a page with each button.--> see pdf, pages 2 and 3

    Thanks and greetz,

    Josh

    Hello

    There are a few things going on here.

    The simplest is the "print" key. See the help file for the eight parameters in the standard script. 2 parameter sets the start page (based on a system of numbering from zero); the third parameter defines the final page. If you look at the button "print" on page 2 it now looks like this:

    xfa.host.print(1, "1", "1", 0, 0, 0, 0, 0);
    

    Now on page 2, the rows of the table were not particularly well referenced. There was a lot of Row2 [*]. This script referencing Roe7 did not work.

    On each of the pages, I have set out the script for the first four buttons. You can follow the same steps as for the rest of the table and buttons.

    In the script you were reference #subform, which did not exist. Make this specific to the particular page has worked:

    xfa.host.resetData("form1.Patienten.Table1.Row2");
    xfa.host.resetData("form1.Patienten.Table1.Row3");
    

    I did only the first four rows.

    Good luck

    Niall

Maybe you are looking for