wxListBox Drag Reorder

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
In need of some credit
In need of some credit
Posts: 1
Joined: Wed Jun 05, 2013 9:36 pm

wxListBox Drag Reorder

Post by AndreLDM » Wed Jun 05, 2013 10:35 pm

Hello there,
My first post here, I swear I did search an answer to this issue before opening this topic :D
My problem is, I need a wxListBox that can reorder its items by just dragging them.
The perfect solution would drag more than one, but one at a time should be fine.
Here is what I was able to do: http://pastebin.com/RL7cUXjJ
The code is messy, any tip is welcome.

Thank you.

Posts: 1579
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Re: wxListBox Drag Reorder

Post by catalin » Fri Jun 07, 2013 1:38 am

There is a wxRearrangeList since 2.9.0. If it doesn't help you maybe you can start changing its code.

Post Reply