---Ramesh wrote------
> Check out these properties of a field in Director's help file, it might
> help.
> 
> the selStart
> the selEnd
> the selection
> 
> best regards
> ------------------------------------------
> Ramesh CT

--------------In reply to-----------
> >>>
> How can I find out where the cursor is in a text field sprite? Not the
> mouse position but the actual text cursor (vert line)  itself. I 
> need it to
> imitate the action of holding SHIFT+HOME or SHIFT+END to select a chunk
> from the current char to the start or end char of a line.

Hi Ramesh,

yeah - I've looked into those and they're what I intend to use, but it doesn't answer 
my query. 

Say, for example, a user has scrolled to the 5th char in a 20 char word using the 
arrow keys. By pressing SHIFT+HOME the 5 chars preceding the cursor should be 
selected. I will set the selStart to 1 but how can I set the selEnd - I need something 
like theCurrentCursorPosition. Equally, in the above situation, pressing SHIFT+END 
would select the 15 chars after the cursor position. Again, I can set the selEnd to 
the last char of the line, but how do I set the selStart.

I'm still stumped. X-(

Leon



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]

Reply via email to