Drag rows between ListIcons

Developed or developing a new product in PureBasic? Tell the world about it.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Drag rows between ListIcons

Post 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.
I may look like a mule, but I'm not a complete ass.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Love to check it out but I keep getting a page not found :(
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Fixed. Sorry about that. 8)
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

***A COUPLE OF BUGS FIXED!***
I may look like a mule, but I'm not a complete ass.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Thanks. Got it. Haven't had a chance to check it out yet.

cheers
naw
Enthusiast
Enthusiast
Posts: 573
Joined: Fri Apr 25, 2003 4:57 pm

Post 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...
Ta - N
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
I may look like a mule, but I'm not a complete ass.
Post Reply