Drag+Drop in a listicon

Just starting out? Need help? Post your questions and find answers here.
User avatar
JHPJHP
Addict
Addict
Posts: 2251
Joined: Sat Oct 09, 2010 3:47 am

Drag+Drop in a listicon

Post by JHPJHP »

Hi RASHAD,

Nice solution:

Code: Select all

InsertMark.LVINSERTMARK\cbSize = SizeOf(LVINSERTMARK)
SendMessage_(GadgetID(#ListIconGadget), #LVM_INSERTMARKHITTEST, @point, @InsertMark)
SendMessage_(GadgetID(#ListIconGadget), #LVM_SETINSERTMARK, #Null, @InsertMark)
SendMessage_(GadgetID(#ListIconGadget), #LVM_SETINSERTMARKCOLOR, #Null, $0000FF)
I've adapted my Move Multiple Items example to work with INSERTMARK; see my previous post.

NB*: There is a bunch of unnecessary code due to some personal preferences; I’ll probably rewrite the example at some point to be more standard.

If you're not investing in yourself, you're falling behind.

My PureBasic StuffFREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
coffee
User
User
Posts: 77
Joined: Fri Oct 06, 2017 10:43 am

Re: Drag+Drop in a listicon

Post by coffee »

Thanks JHPJHP and RASHAD - you both really helped me.
Post Reply