Drag&Drop list reordering ?

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
xApple
Posts: 113
Joined: Wed Nov 29, 2006 10:21 pm

Drag&Drop list reordering ?

Post by xApple » Sun Jan 14, 2007 4:43 pm

OK, my problem is fairly simple: I have a "list behavior" field with no multi-line option and with with locked text. All I want is the user to be able to reorder the lines of this field in his prefered order. I could do this with two buttons named "Push up a nodge" and "Push down a nodge" but the Apple-HIG way would be to simply allow drag and dropping of a line in it's new desired position... Anyone wrote such a script already ?

Just asking before-hand to be sure my efforts to make it are not in vain :)

Thanks in advance.

Bill
Posts: 57
Joined: Sat Apr 08, 2006 8:22 pm

Post by Bill » Sun Jan 14, 2007 8:07 pm

There was certainly a demo of this online for years, I think I lost it as many times as I've downloaded it.

Basically, if I remember how its done, you insert the selected text into another field that follows the mouse while its down, when you let go of the mouse you hide the drag field and find out the new mouseline of the original field, inserting the dragged text into that line and removing it from the original.

I'm pretty sure thats how its done.

xApple
Posts: 113
Joined: Wed Nov 29, 2006 10:21 pm

Post by xApple » Sun Jan 14, 2007 8:25 pm

Interesting strategy, could be a way to go...
I could surly make in an hour or so... But if it's already been implemented in something open-source, I'd much rather like plagiarizing ^^

No souvenirs at all of how it could be called ?

marielle
Livecode Opensource Backer
Livecode Opensource Backer

Post by marielle » Mon Jan 15, 2007 1:59 am

xApple wrote:No souvenirs at all of how it could be called ?
Try your luck on revonline under Jan Schenkel and Klaus Major.

mblackman
Posts: 22
Joined: Fri Apr 14, 2006 12:02 pm

Post by mblackman » Mon Jan 15, 2007 11:02 am

type in your message box:

go url "http://www.tactilemedia.com/download/getinline.rev"

xApple
Posts: 113
Joined: Wed Nov 29, 2006 10:21 pm

Post by xApple » Mon Jan 15, 2007 2:19 pm

SWEET !
Thanks, that's absolutly perfect.
Just saved me repeating a job already done !

I read several mentions now of this "revonline" thing... apparently some kind of database of freely downloadable stacks... but I can't seam to find it !

Typing "revonline" in google brings you to the online shop or to the home of some US ISP...
Where is this gold pot hiding ? On the left hand side of the rainbow ? ^^

marielle
Livecode Opensource Backer
Livecode Opensource Backer

Post by marielle » Mon Jan 15, 2007 3:36 pm

xApple wrote:I read several mentions now of this "revonline" thing... apparently some kind of database of freely downloadable stacks... but I can't seam to find it !
This is available from within your revolution environment. A blue button with revonline under it. That is if you didn't hide the toolbar -- oups, I believe that Galaxy does exactly this, hide your toolbar. You can also access it via the top menu. Development -> Revolution Online -> User spaces -> Browse Users.

:-)

xApple
Posts: 113
Joined: Wed Nov 29, 2006 10:21 pm

Post by xApple » Mon Jan 15, 2007 3:55 pm

Ah heh yeah ^^
Sometimes you can walk by a pink elephant and just not see it ^^
Thanks again.

Post Reply