I have a listbox only containing text.
The basic problem is when I drag to DragReOrder, the DropObject fires. (OF Course)
I have enabled for a listbox both DragReOrder and DropObject events.
That causes a problem when I want to ReOrder the rows, since the DropObject event is setup for importing text as opposed to Reordering rows.
Is there one of the XOJO properties that I can use to get XOJO to allow the system default to happen?
It would be nice if I could tell the DropObject
If XXXXX Then return
and it would just move the rows.
Yes… test the drop objectDragItem to see if it’s a file you can read to import or a row that was picked up to reorder.
I would argue this is a better solution as it relies on the framework to do more of the work.
An example of how to figure out what was dropped can be found in the documentation.
Edit: Oops, I did it again - it’s a DragItem not a DropObject.