How to drag and drop items in a list

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Happyrever
Posts: 55
Joined: Sat Sep 10, 2011 12:22 pm

How to drag and drop items in a list

Post by Happyrever » Sun Oct 23, 2011 4:33 pm

I have a basic table field where its prime function is "Click on a line to process the line in some way"
However, I also wish to drag a line in the list to a new position in the list, without triggering the prime process.
The purpose is to re-order the lines in the list.

Does anyone know how this can be coded?

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

Re: How to drag and drop items in a list

Post by Klaus » Sun Oct 23, 2011 4:42 pm

Hi

Scott Rossi provided a great example on how to do this!
Go here: http://www.tactilemedia.com/
Click: Software -> in the upper right corner: See all tutorials...
Then looks for for "Get in line" down the page.


Best

Klaus

Happyrever
Posts: 55
Joined: Sat Sep 10, 2011 12:22 pm

Re: How to drag and drop items in a list

Post by Happyrever » Mon Oct 24, 2011 8:36 am

I had visited this brilliant site before and should have remembered this item. Thanks for the tip; it is just what I needed.
I reckon all newbies should visit this site, just to glimpse the possibilities Livecode can offer.

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: How to drag and drop items in a list

Post by marksmithhfx » Wed Oct 26, 2011 2:23 am

Very elegant solution... I wish I'd known about it before I wrote my own :)
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

Post Reply