4 Replies Latest reply on Mar 20, 2008 12:26 PM by Newsgroup_User

    How to move cursor between editable fields?

    Level 7
      If I have multiple editable fields on a page and I go to that page, the
      cursor automatically goes to the first field. Let's say I want it to go
      to the second field, how do I get it to go there in Lingo? In
      javascript, I think there's a focus command, but in Lingo I can't find a
      way to do it. This will come in handy for user login in case of error,
      you can blank out the erroneous data and move the cursor focus to
      whatever field you want. Can someone tell me how to do this in Lingo
      please?
        • 1. Re: How to move cursor between editable fields?
          Level 7
          Check the docs for 'keyboardFocusSprite'
          • 2. Re: How to move cursor between editable fields?
            Level 7
            Sean Wilson wrote:
            > Check the docs for 'keyboardFocusSprite'

            Thanks Sean,

            I have been trying to figure that out for over a year. Now, I need help
            on moving the cursor to the end of the edittable field. I may not be
            doing this uptimally but I am replacing keys typed in to a password
            field with asterisks and then moving the actual letters to a hidden
            field for testing against the password file. My problem is that as I
            add asterisks to the visible password field the cursor stays to the left
            instead of moving to the right one charatcter after each letter is
            typed. Can you please tell me how to move the cursor to the right or to
            the end of the field (either should work?)?
            • 3. Re: How to move cursor between editable fields?
              Level 7
              Professor wrote:
              > Now, I need
              > help on moving the cursor to the end of the edittable field. I may
              > not be doing this uptimally but I am replacing keys typed in to a
              > password field with asterisks and then moving the actual letters to a
              > hidden field for testing against the password file. My problem is
              > that as I add asterisks to the visible password field the cursor
              > stays to the left instead of moving to the right one charatcter after
              > each letter is typed. Can you please tell me how to move the cursor
              > to the right or to the end of the field (either should work?)?

              Set "the selStart" and "the selEnd" to the length of the text. Or the
              member(someTextMember).selection property.

              Andrew


              • 4. Re: How to move cursor between editable fields?
                Level 7
                In addition to Andrew's suggestion, you could try the Library Palette ->
                Text -> Password Entry behavior