Page 1 of 1

Drag rows between ListIcons

Posted: Sat Oct 29, 2005 7:33 pm
by srod
Hi,

My latest app required the ability to drag rows between different ListIcon gadgets and so I knocked up a little utility which I thought others may (or may not!) find useful.

It allows dragging between different ListIcons or indeed to and from the same gadget (although the results can look a little odd in this case) and can easily be extended to include images and custom drawn ListIcons etc.

Hope it's useful in some way.

http://www.purecoder.net/purebasic/Drag ... stIcon.zip

Regards.

Posted: Sat Oct 29, 2005 9:48 pm
by rsts
Love to check it out but I keep getting a page not found :(

Posted: Sat Oct 29, 2005 10:14 pm
by srod
Fixed. Sorry about that. 8)

Posted: Sun Oct 30, 2005 1:18 pm
by srod
***A COUPLE OF BUGS FIXED!***

Posted: Sun Oct 30, 2005 3:48 pm
by rsts
Thanks. Got it. Haven't had a chance to check it out yet.

cheers

Posted: Tue Nov 01, 2005 12:18 pm
by naw
Neat - I'll be using it real soon ;-)

- Would be nice if you could drag'n'drop multiple lines.
- Also would be nice if the *target* row were highlighted somehow.

Thanks very much for sharing...

Posted: Tue Nov 01, 2005 1:32 pm
by srod
Hello naw.

About the multiselect, I'm probably going to require this myself. It should be very easy to implement - I may well do it this evening; time allowing!

However, having nearly finished work on a custom grid control, I was thinking of combining this with the row drag option which would allow for some very nice selection effects, so I was holding fire on extending the row drag code.

Anyhow, glad to share.

Regards.