Page 1 of 1

Drag&Drop list reordering ?

Posted: Sun Jan 14, 2007 4:43 pm
by xApple
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.

Posted: Sun Jan 14, 2007 8:07 pm
by Bill
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.

Posted: Sun Jan 14, 2007 8:25 pm
by xApple
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 ?

Posted: Mon Jan 15, 2007 1:59 am
by marielle
xApple wrote:No souvenirs at all of how it could be called ?
Try your luck on revonline under Jan Schenkel and Klaus Major.

Posted: Mon Jan 15, 2007 11:02 am
by mblackman
type in your message box:

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

Posted: Mon Jan 15, 2007 2:19 pm
by xApple
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 ? ^^

Posted: Mon Jan 15, 2007 3:36 pm
by marielle
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.

:-)

Posted: Mon Jan 15, 2007 3:55 pm
by xApple
Ah heh yeah ^^
Sometimes you can walk by a pink elephant and just not see it ^^
Thanks again.