Funny you should say that as I want to do a similar
thing with an MP3 playlist.
You have to options...you can either use a field
member instead of a text member as fields support the
hilite() command (text members to not). SImilarly,
text members do not support the mouseLine, a command
to get the line number of a field under the mouse.
I am not in front of Director at the moment, so I
cannot say for sure if this will work, but here is an
idea for the drag-and-drop functionality you want for
a field member.
1.) Store the selected chunk of text in a temp
variable. You can probably get this by using
chunk = myField.char[selStart..selEnd]
2.) on mouseDown, check a flag to note that you are
performing a drag operation
isDragging = TRUE
or
flag = #dragging (I like using symbols!)
3.) on mouseUp, check to see if the drag flag has been
set. If so, get the mouseChar and use that as the
insertion point. Insert the text there. You would use
the "put" command there, but I cannot remember the
exact Lingo.
4.) Remove the chunk from the initial position.
When I get home I will look this up properly for you
and re-post, but hopefully this will give you some
pointers.
As for doing this with a text member, I have no idea!!
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
[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!]