On Wed, 29 Jul 2020 17:22:42 -0500 David Woods wrote:
DW> I have included a wxPython sample program. You can select an item in a
DW> TreeCtrl and use either drag-and-drop or cut-and-paste (through the Edit
DW> menu) to re-arrange the items in the tree. You'll see that both methods
DW> work on Windows but only copy-and-paste works on macOS, with the program
DW> crashing on the second drop using drag-and-drop. Also, if you alter the
DW> boolean value in the first line of the program, the code will use
DW> TextDataObject instead of CustomDataObject, and then both cut-and-paste and
DW> drag-and-drop will work on both platforms.
DW>
DW> I apologize that I don't have a C-based wxWidgets sample for you, but I was
DW> unable to get drag-and-drop working in C.
I understand that it's not simple to provide an example in C++, but
unfortunately it's also not simple to debug a wxPython example. But please
open a ticket on wxTrac with your example nevertheless, maybe somebody can
translate it to C++ later and, at the very least, this will ensure that we
can check if it's still broken later.
Thanks,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/