Page 1 of 1

Drag and Drop text line in a list field

Posted: Thu Feb 25, 2010 10:15 pm
by quailcreek
Hello,
I have a scripting question. I have a scrolling list field with multiple lines of text. The textStyle of the lines are link because I have something happening when the line is clicked and the field is locked. What I want to accomplish is with the mousedown and with the control key held down (controlKeyDown) the text line can be dragged up or down in the field to reposition it. Any thoughts?

Thanks,
Tom

Re: Drag and Drop text line in a list field

Posted: Fri Feb 26, 2010 12:34 pm
by Klaus
Hi Tom,

there is a demo stack available that can do this, but beware, the script is not trivial!

1. Go to: http://www.tactilemedia.com/
2. Click "Software" on the top right
3. Click "See all tutorials..." on the top right
4. Search for "Get in line" on the right side, down the page.

Maybe you can tweak the loooooong script to your needs :)

And don't forget to check all the other extremely beautiful examples there!
"Jaw dropping" guaranteed, Scott Rossi is a graphics (and scripting) genius :)

Best

Klaus

Re: Drag and Drop text line in a list field

Posted: Fri Feb 26, 2010 5:22 pm
by quailcreek
Klaus,
Thanks. This should get me started in the right direction. There are other great sample stacks on that website too.


Tom