Page 1 of 1
drag and drop to rearrange listicongadget
Posted: Tue May 16, 2006 2:23 am
by killfreak
I'm making a small media player with a playlist function, and I'd like to be able the rearrange the playlist by simple drag and drop (like in winamp/wmp). The playlist is a ListIconGadget.
Note: not dragging files from explorer or from another gadget, but dragging rows inside a playlist.
The closest I could find was
Drag Rows by srod, but unfortunately it only drags rows between ListIconGadgets, ie cannot drag from and to the same gadget. Any help?
Edit: forgot to add, hopefully it must work in 3.94

Posted: Tue May 16, 2006 9:29 am
by srod
Using the ImageDrag functions seems to be problematic with those having the classic Visual Basic on their systems and so I stear away from those at the moment.
The following link contains some 'rough and ready' code which I have now tidied up and integrated into EasyVENT quite nicely. I'm away from my computer at the mo and so cannot do anything about tarting up the code.
It's PB4 but can easily be adjusted to drag between just about any kind of gadget, and shows one way of dragging and dropping etc.
http://www.purebasic.fr/english/viewtop ... 3&start=15
One of my EasyVENT examples also shows how to iiuminate target rows etc. whilst dragging over a listicon.
Hope it helps.
Posted: Tue May 16, 2006 10:31 am
by killfreak
hmmmm looks pretty useful thanks! And it converts easily to 3.94 just by changing a few parameters only. Will try to work on it.
Posted: Tue May 16, 2006 10:37 am
by jb
srod wrote:Using the ImageDrag functions seems to be problematic with those having the classic Visual Basic on their systems and so I stear away from those at the moment.
I think Microsoft has released a fix for this problem:
http://support.microsoft.com/?kbid=896559
Posted: Tue May 16, 2006 11:44 am
by srod
Thanks jb, that could well be the problem. Trawling the net revealed lots of people using different languages who, when dragging from listicon's, didn't so much generate the error reported in your link, but just did not see any kind of drag image. The only common link that I could find is that all of these people had classic VB on their systems and so had the common controls active X files installed etc. Very strange.
At the very least, your link shows that there are problems with some of the common controls libraries.
Thanks.