Drag and Drop text line in a list field

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Drag and Drop text line in a list field

Post by quailcreek » Thu Feb 25, 2010 10:15 pm

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
Tom
MacBook Pro OS Mojave 10.14

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Drag and Drop text line in a list field

Post by Klaus » Fri Feb 26, 2010 12:34 pm

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

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Re: Drag and Drop text line in a list field

Post by quailcreek » Fri Feb 26, 2010 5:22 pm

Klaus,
Thanks. This should get me started in the right direction. There are other great sample stacks on that website too.


Tom
Tom
MacBook Pro OS Mojave 10.14

Post Reply