Smells like a bug to me. I made a bare bones movie to test it out - the
following button behavior works if sprite(1) contains an editable
field, but not if it contains an editable text member:
on mouseUp me
_movie.keyboardFocusSprite = sprite(1)
_movie.selStart = 3
_movie.selEnd = 3
put _movie.selStart, _movie.selEnd
end
When sprite(1) contains a text member, the put statement always returns
0,0.
I guess you're stuck with a field, unless there's a property for text
members other than "editable" that affects the caret.
I have a complex text input member that I put on the screen, put some
new text in it, scroll if necessary, and then allow the user to input
text. I now want to put the latest text at the top and then allow the
user to type from there. However, my attempts to place the cursor at
position n have been fruitless.
Even when I make a test movie with code like this:
_movie.keyboardFocusSprite = 1
the selStart = 3
the selEnd = 3
I get the cursor at the end of the text in the member rather than
after char 3.
Any ideas what I'm doing wrong?
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]