Problem of text selection in the text field for entry in the emulator

I'm having a problem of text selection in a text field when I run my application in the emulator Playbook. Let me see if I can expose the problem here:

  1. The field in question is a classic text, text with an integrated in police entry field. The domain is in a SWC and referenced in another FILE.
  2. The code is set up such that when a user clicks the field function is called to highlight all the text. The code is more or less as follows:
thisField.addEventListener(MouseEvent.CLICK, onFieldClick);

private function onFieldClick(event:MouseEvent):void
{
   var selectedField:TextField = event.target as TextField;
   selectedField.setSelection(0, selectedField.text.length);
}

The problem I'm having is that when I try clicking on the emulator, the text field in 'domain' is sometimes selected as expected, sometimes not. When the text is not selected as expected the cursor always appears in the field and the Playbook keyboard slides up by below. What is particularly problematic, that's what often happens, is that the whole scene moves upward on 10px when it is clicked on the ground. If I try to click on the same ground once again, another change to the top of 10px or so, etc..

So why the text not properly selected and why the scene evolves upwards?

I realize that more information may be required from me to correctly solve this problem, but if someone has all understand why this may be the case, I would be happy to learn from him.

Thank you

David

I can answer the question of displacement.  This is a bug in BB and supposed to be fixed in version «next» SDK

The question of the selection, I'll guess has to do with the fileld with focus, selection is not possible.  Try to set the focus outside of maybe the text field?

Tags: BlackBerry Developers

Similar Questions

  • Text field for the (nieme second word) on the Page

    The script adds text fields on a page based on the search for the word DATE.

    This script must be changed to add the text field for second occurrence of the word DATE only on the page and NOT the first occurrence of the word.

    Currently, the script adds a text field for all occcurances of the word DATE.

    Any help will be greatly appreciated.

    Thank you.

    / * Add on manual transmission date text field * /.

    var this.numPages = NUMPAGES;

    for (var k = 0; k < numpages; k ++)

    / * 1st co - ord = Horizontal, 2nd co - ord = vertical, 3rd co - ord = width, 4th co - ord = height * /.

    {

    {

    numWords var = this.getPageNumWords (k);

    for (var i = 0; i < numWords; i ++)

    {

    var ckWord = this.getPageNthWord (k, i, true);

    If (ckWord = 'DATE')

    {

    var q = this.getPageNthWordQuads (k, i);

    Convert quads in the rotation by default user space

    Userspace used by links.

    m = (new Matrix2D).fromRotated(this,0);

    mInv = m.invert)

    r = mInv.transform (q)

    r = r.ToString)

    r = r.split(",");

    var f = this.addField ("Date", "text", k,

    ([r [0] * 1.10, r [1] - 10, r [2] * 1.3, [5] r-15]) ;

    }

    }

    }

    }

    Try something like this:

    var this.numPages = NUMPAGES;

    for (var k = 0; k)< numpages;="" k++)="">

    var nDateCount = 0;  Initialize counter

    numWords var = this.getPageNumWords (k);

    for (var i = 0; i)< numwords;="" i++)="">

    var ckWord = this.getPageNthWord (k, i, true);

    If (ckWord = 'DATE') {}

    nDateCount += 1;  Incrementing counter

    If (nDateCount == 2) {}

    var q = this.getPageNthWordQuads (k, i);

    var m = (new Matrix2D).fromRotated(this,0);

    mInv var = m.invert ();

    var r = mInv.transform (q).

    r = r.toString ();

    r = r.split(",");

    var f = this.addField ("Date", "text", k, [r [0] * 1.10, r [1] - 10, r [2] * 1.3, [5] r-15]);

    break;  No need to keep the current page search

    }

    }

    }

    }

  • Text fields for export in CS4

    I believe that it is possible to create and export text fields for the completion of a PDF file but can't find this feature in my (albeit) version of InDesign CS4. Does anyone know if it is something that only became available in CS5 go?

    Grateful for any help.

    Michael

    CS6 forward.

  • How can I add a text field for the main menu?

    I have a project with a menu.  He has a title.  I wanted to add an additional track on the menu, what I had done in an earlier draft.  I would have thought he would have intuitively obvious, as highlighting the existing title I and do a copy and paste.  However, I learned that nothing is intuitive with Premiere elements 12.  Can someone tell me how to get a 2nd title on my main menu?  I have done it before, but apparently did not write it and I was faced with that I falsely assumed would take me 30 seconds to accomplish.  Thank you.

    Rick

    Do you really need a second title for the page in the main menu and the selection of scene or you page fixed for your Adobe title in more than one line?

    I wonder

    I wanted to add an additional track on the menu, what I had done in an earlier draft.

    Is it possible that as soon as you use a theme which came with 'subtitle', as the trip/Beach Resort, not all do.

    Workaround for the title with more than one line of text can backfire on you. But you can try. Excerpt from my first items 13 on this blog

    0019 first Elements 13 movie Menu title question: multiple lines of text


    A first elements 13/13.1 user reports that, if it creates a 3 lines of title text for the main menu of the fake big screen theme in the customization area of Movie Maker project, these 3 lines of text eventually "encoded" in the project of reopening after that that there had been closed.

    We have confirmed this report and extended it to include this problem appears for 13 of Menus other than the fake Widescreen cinema. This issue is not seen in first items 12/12.1 and earlier versions.

    BEFORE REOPENING THE CLOSE SAVE

    Figure 1. Main menu of Spring Flower home with 3 lines of text, as seen before the closure of the Reopen

    AFTER THE REOPENED NARROW SAVE


    Figure 2. Spring Flower main Menu title initially with 3 lines of text, as seen from the closure of the Reopen



    The only way found so far to get the final product to have 3 lines of title text for menus in the final product is to customize the theme to the movie Menu in the customization of the Menu movie of the project area, do not save, close the project at this time and can do the burn to.


    Many variables were examined to explain this behavior. So far, no answer for why.

    If you are determined to use a particular theme that comes with the title menu and subtitle, look at the text of the Palette layers layers in the editing menu .psd file (.psd Editor could be Photoshop CS or higher).

    Regarding

    on my project last year that was the menu that I liked with 2 text fields, I have also got rid of the "arrow" shortly before the text that was the menu key.  Anyone know how I do that?  I can't figure that out now.

    Could you be more specific. But, for now, consider... If you Play All text, you double-click to open the text of the amendment, the deleted text, click OK. Play All disappeared. Sometimes, in page and removal of text "main menu" scene selection to the navigation button... double click on the button to open the changes to the text, delete text, press ENTER, and then bar spacing, and click OK.

    Please let us know if everything above the target you wanted to know.

    Thank you.

    RTA

  • How to set the text field for the credit card number?

    Hi, this seems like it should be a no-brainer in the Properties menu, but what is the best way to add a credit card number to a form?

    I have mine set up like a text field > category format: number > decimal: 0 > Style separator: (by default with the comma, but not what I want, of course)

    and the symbol > No.

    Is there an easy way to create 16 character space to the digits of the credit card?

    Thanks in advance

    Under Format, select special, then arbitrary mask and enter the mask: 9999 9999 9999 9999

  • How to programmatically launch touch sceen keyboard, when the user clicks on the text field for application?

    Hello

    I create a desktop using the CreateDesktop() API, in this office, I launched a MFC dialog with text field box in this topic.

    I want to get the keyboard touch screen when I touch on the text field of the dialog box.

    I tried to use the following information

    https://msdn.Microsoft.com/en-us/library/Windows/desktop/dd371581%28V=vs.85%29.aspx

    but the key Board launched when I touch the dialogue instead of text field.

    Please give me the solution?

    Pramod Hello,

    Thanks for posting your question on the Microsoft community.

    This question fits better to the developers on MSDN forums.

    I would recommend posting your question on the MSDN forums.

    MSDN forum
    https://social.msdn.Microsoft.com/forums/en-us/home?category=windowsdesktopdev

    Thank you

  • How to disable "Show indicator of overflow for the text field" for all users on a Terminal Server.

    As the title suggests, I am trying to disable the "show text overflow indicator field' for all users that connect to a remote desktop in Windows Server 2008 R2 server. The Adobe Reader software version is 9.0.

    http://content.screencast.com/users/chipthamac/folders/Snagit/media/221435ce-23a1-4fbb-8ba5-ebabe0fb1805/04.03.2013-11.00.png

    Looks like we have found a solution. We had a group of "update" policy the registry for the current user on login.  It's the key, you need to add in a GPO / your domain controller. In case you can't see in the screenshot, here's the path full key: Software\Adobe\Acrobat Reader\9.0\FormsPrefs

  • engaging multiple values to a text field for a button

    I have a form that has several buttons that uses the items.push (command/script/EC) that you have to put some text in a text field.  People are asking now that they can put several selections from the button in the field.  Can someone point me in the right direction, or suggest a way to do it?

    I have attached a screenshot.  I clicked the button on the left to view features of the buttons and right I already have something of the key and he was placed in the text field.  I would like to be able to place several things in the field of the key even if possible.Screen shot 2011-01-19 at 12.14.18 PM.png

    You could change the code to:

    If {(response)

    Get a reference to the text field

    var f = getField ("competency");

    Add the selected value field, separated by a carriage return (except if the field is empty)

    f.Value = f.value? f.Value + "\r" + elements [answer]: [answer] points;

    } else {}

    App.Alert ("You have not selected an element.", 1);

    }

  • text field for class stage access

    Hey,.

    A simple access of class issue:



    I have a dynamic text field on my stage, name the instance: "lives_txt."

    I want to fill this field in my Document class 'Ball.as '.



    Then in my Ball.as class I tried: parent.lives_txt.text = String (life);

    where: var public life: int = 3;



    I get an error: access of possibly undefined property lives_mc through a reference with static type flash.display:DisplayObjectContainer.



    What I am doing wrong?



    Thank you

    Yes, I made a typo in the original post (now edited)

    lives_txt. Text = String (life); Could not access it.

    MovieClip (root).lives_txt.text = String (lives); Is what I was looking for!

  • Problem with query select when the value is "I" or "II".

    Hello

    APEX 4.0.2

    I have a select as below,

    Select CLASS_TITLE
    of VW_TITLE
    where instr (upper ("CLASS_TITLE"), upper (nvl (DECODE (: P80_CLASS_TITLE, 'ALL', NULL,: P80_CLASS_TITLE), "CLASS_TITLE"))) > 0

    P80_CLASS_TITLE is defined as LOV. When I select "administrative specialist I" in the list, it returns the following.
    E specialist I
    Administrative Specialist II

    But if I select 'Administrative Specialist II', it returns only Administrative Specialist II.

    I only have this problem when there is an 'I' or 'II' in the CLASS_TITLE; Otherwise, it returns the correct values.

    Thanks a lot for your help.
    MT

    the mt user says:
    Sorry if I you confused. That's what I want the select statement to make. If I select a class title in the list of values, I want to display the title of the selected class. If I do nothing select in the list of values, then display all class titles in the table which is the default value.

    I assumed that "ALL" is the default value from the LOV. If the above does not work it appears that it must be null. So much more SQL 101:

    select
              t.class_title
    from
              vw_title t
    where
              t.class_title = :p80_class_title
    or        coalesce(:p80_class_title, 'ALL') = 'ALL'
    

    I'm guessing that you came with all the stuff INSTR/DECODE...

    You would probably enjoy taking up the + 2 day Developer Guide + brush on basic SQL.

  • Drop-down field - when some entries are selected are unavailable another field for data entry

    Hi all

    A sorry again, I am very new to forms and have another question. I have a drop down list which list by selecting certain values I need an another field will not be available if the user can enter data.

    Hopefully this example is logical:

    Drop-down list Champ %
    Outdoor

    Not allowed to enter data

    Previous

    Not allowed to enter data

    Interior

    Not allowed to enter data

    Cotton

    Allowed to enter data

    Wool

    Allowed to enter data

    If someone could give me some examples that would be a great help.

    Thank you very much

    Adam Sadler

    Here is a script that you can use for the validation script custom from the drop-down list. It resets the value of the text box, whenever a change is made to the drop-down list. You can get rid of the line doing it, if you do not want to. Change "text1" in the code to match the name of a text field that you are using.

    Validate a custom for picklist script

    (function () {}

    Get the selected value

    v var = event.value;

    Set up an object to associate status items text box read-only

    var f_state = {}

    'Outside': true,

    'Back': true,

    'Interiors': true,

    'Cotton': false,

    'Wool': false

    };

    Get a reference to the text field

    var f = getField ("text1");

    Clear the text field

    f.Value = "";

    Set the State of read-only text box based on what is selected

    If (v f_state) {}

    f.ReadOnly = f_state [v];

    }

    })();

  • Problem editing text fields since the upgrade to 3.5 + FF

    Since I've upgraded to Firefox 3.5, I had bad to edit fields of text, in some websites and in FF itself. First of all, I noticed this when I went to change the name of a Web site I'm bookmarking. By clicking on the blocked-out title must (and used to) erase the block and the position of the cursor, but now the only way to change is to use the keys on the keyboard (End, arrow, etc.).

    Now, I'm also always find a similar problem in the field update Facebook status, where it does not respond to the click or a double click of my mouse to highlight a word or reposition the cursor.

    I've just upgraded to the latest 3.6 and was hoping it would be fixed, but it's the same or worse. Everyone knows about this problem?

    • "Clear the Cache": Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
    • 'Delete Cookies' of sites that cause problems: Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
  • Acrobat Pro DC: need help to bind the text fields for text overflow

    I use Acrobat Pro DC and I'm trying to bind two form fields so that overflow text box1 to box2. Someone knows how to do this? I am a novice so I need step by step help. I did some research but have only found solutions for older versions of Acrobat, if instructions are essentially useless. Please and thank you!

    I did it! You have to edit the custom script typo and enter in this:

    If (event.fieldFull | event.willCommit)

    this.getField ("name of the overflow field goes in here") .setFocus ();

    Only problems I ran into is that you can't have fields bound, and he cannot have special characters or spaces in the name of the field.

  • problems of text field

    When I try to place an image and type the text in the aspect of it, it turns out that this

    [IMG] http://I39.Tinypic.com/141i7wx.jpg [line]

    How am I able to separate the text from the image box, so that it can be tapped on the side of the image, without skipping the entire height of the image when I go into a new paragraph.

    Thank you.

    money-boyy says:

    original code is this

    so it should become


    not too sure.

    thanks!

    Correct apart from you have left the closing " off="" the="">-style = "float: left;"

    Therefore, this:

    Should be:

  • How to format a text field for credit card numbers?

    OK, I found this conversation, http://forums.adobe.com/message/3598185, who gave a useful overview and I adapted the code appearing in to make sure that the user types in a 16-digit number, and he told them to just do it if they do not.

    Here's my problem:

    With the code that appears, I can either get a unique 16 digit string (e.g.: 1234567890123456), or I have to do the user to manually type in the spaces to get the usual format of the CC (1234 5678 9012 3456).

    What I hope is a code that will allow me to allow the user to just type in 16 continuous digits, but which will then display that entry into the format expected. (So user 1234567890123456 types, but the field when they tab or click out of it will show 1234 5678 9012 3456)

    Here is the code I have so far (as I said, almost word for Word copied from the link above):

    On the Format tab, under Custom Script Format:

    function checkFormat (s) {}

    If (! s) return true;

    var r =]

    / ^ \d{16}$/

    ];

    Return AFExactMatch (are, s);

    }

    On the Format tab, under typing a Script custom:

    (function () {}

    If {(event.willCommit)

    var isValid = checkFormat (event.value);

    If (! isValid) {}

    App.Alert ("Please enter a valid credit card number without spaces or dashes. 16-digit", 1);

    Event.RC = false;

    }

    }

    })();

    I'm sorry it's so simplistic. Although I rooted around in other languages (HTML, C++) programming, so I'm not a complete noob, I don't know anything about Java at all...

    Thanks in advance!

Maybe you are looking for