Irv...
>If this were a field member, I just set it to editable, and the
>functionality is built in. Then I can get the selStart and the selEnd.
In D8 possibly in D7 you can use 'the selection' to get the selected text
in a field as opposed to using selStart/selEnd.
property pSelText
on mouseUp
pSelText = the selection
put pSelText -- OR JUST
put the selection
end mouseUp
That will return the currently selected text in the currently active FIELD.
You can get the same type of thing with a TEXT member by doing this
-- From the lingo dictionary
-- attached to the text member
property spriteNum
on mouseUp me
mySelectionObject = sprite(spriteNum).member.selectedText
put mySelectionObject.text
put mySelectionObject.font
put mySelectionObject.fontSize
put mySelectionObject.fontStyle
end
Either of these methods gives you the currently selected text to do with
what you will. ;)
Hope that helps.
Later.
...Neil
[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!]