Drag and drop

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Nunki
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 218
Joined: Fri Sep 14, 2012 8:26 am
Location: Kontich, Belgium
Contact:

Drag and drop

Post by Nunki » Tue May 12, 2020 9:34 am

Hi Guys,

I would like to know how to implement the drag and drop feature between a wxGrid (row selection) and a treeview.

with regards,
Nunki
dragndrop.png
dragndrop.png (59.22 KiB) Viewed 235 times

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4264
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Drag and drop

Post by ONEEYEMAN » Tue May 12, 2020 12:50 pm

Hi,
Did you look at the dnd sample?
DId you check the wxGrid documentation?

Thank you.

Nunki
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 218
Joined: Fri Sep 14, 2012 8:26 am
Location: Kontich, Belgium
Contact:

Re: Drag and drop

Post by Nunki » Tue May 12, 2020 3:32 pm

Hi OneEyeMan,

In the meantime I found some similar question from back in 2005. Seemed that wxGrid did not support DnD. Don't know if they support it now. I don't see any event that may be linked like EVT_GRID_BEGIN_DRAG as there is with a treeview. Also it would be a DnD between two different objects, not within 1 object.

with regards,
Nunki

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4264
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Drag and drop

Post by ONEEYEMAN » Tue May 12, 2020 4:52 pm

Hi,
You will probably want to look at the dnd sample then.

Thank you.

Post Reply