moving the cursor in text

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default moving the cursor in text

    Hi all,

    How can I move the cursor in a editable text box through code. So if the
    user pushes the 'home' key I can move the cursor to the start of the text
    box.

    Thanks
    Jimmy


    Jimmy Guest

  2. Similar Questions and Discussions

    1. Cursor moving in one position
      Hi all, in some aplicantions, we can see the cursor moving in one position, like an "indicator of application is running". In the examples that I...
    2. Moving within a cursor declared in plpgsql function
      I have searched the web/archives for a solution to this and have found a few entries to my question but nothing definitive. In essence I have a...
    3. moving 3D objects from cursor values
      Can anyone tell me if it is possible to reposition an imported 3D object based on the inputs from cursor positions. I am trying to build an...
    4. Moving Field off screen - cursor stays
      Hi, I have a behavior which hides and shows sprites by moving them on and off stage. However, if I move a field off stage, and there are no...
    5. Moving Custom Cursor with the key board?
      Hi, me again. I want to move a custom cursor or just a sprite using the arrow keys and the enter key instead of a mouse down / click. I have...
  3. #2

    Default Re: moving the cursor in text

    I believe you'd use the selStart and the selEnd

    you set them to the range of the selection you want in the text. If you
    want the cursor to be after the second character you'd use the selStart = 2
    and the selEnd = 2

    I don't remember if 0 or 1 is the first position.



    --
    Craig Wollman
    Word of Mouth Productions
    phone 212 724 8302
    fax 212 724 8151
    [url]www.wordofmouthpros.com[/url]
    "Jimmy" <a@b.c> wrote in message news:bheoro$gl4$1@forums.macromedia.com...
    > Hi all,
    >
    > How can I move the cursor in a editable text box through code. So if the
    > user pushes the 'home' key I can move the cursor to the start of the text
    > box.
    >
    > Thanks
    > Jimmy
    >
    >

    Word of Mouth Productions Guest

  4. #3

    Default Re: moving the cursor in text

    Same thing just using dot syntax. Better way? What could be better than a
    simple line like that?



    --
    Craig Wollman
    Word of Mouth Productions
    phone 212 724 8302
    fax 212 724 8151
    [url]www.wordofmouthpros.com[/url]
    "Jimmy" <a@b.c> wrote in message news:bhep68$h24$1@forums.macromedia.com...
    > "Jimmy" <a@b.c> wrote in message
    news:bheoro$gl4$1@forums.macromedia.com...
    > > Hi all,
    > >
    > > How can I move the cursor in a editable text box through code. So if the
    > > user pushes the 'home' key I can move the cursor to the start of the
    text
    > > box.
    > >
    > > Thanks
    > > Jimmy
    > >
    > >
    >
    > Ok,
    >
    > I got it to work using the following code:
    > sprite(me.spriteNum).member.selection = [0, 0]
    >
    > But is there a better way to do it?
    >
    > Thanks
    > Jimmy
    >
    >

    Word of Mouth Productions Guest

  5. #4

    Default Re: moving the cursor in text


    Thanks heaps


    Jimmy Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139