Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Jimmy #1
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
-
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... -
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... -
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... -
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... -
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... -
Word of Mouth Productions #2
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
-
Word of Mouth Productions #3
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...news:bheoro$gl4$1@forums.macromedia.com...> "Jimmy" <a@b.c> wrote in messagetext> > 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>> > 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
-



Reply With Quote

