2/22/20 - EDIT: Replaced the .ZIP with one that runs without edit and eliminated the dragdrop on list items for clarity.
I have a number of Horizontal ListViews on a ScrollPane. The ListViews contain TextArea controls which have been set up for drag and drop, sometimes the drag and drop involves deleting the item from the ListView. The problem is, when you delete using drag and drop the ScrollPane Jumps to the top. I can get back to where I was by saving and setting .VPosition on the ScrollPane but it flickers badly - very unprofessional.
I don't know if this is a bug or if I am doing something wrong.
I have included a project which illustrates the problem. It is a quick hack. I have tried several ways to delete the item after the DragDrop is complete but none seem to work.
If you select an item in any of the lists and then click the "Delete (X)" box associated with that listview it works fine.
If you select an item in the list and drag it to the "Delete (X)" box it works but jumps back to the top of the ScrollPane. You have to actually scroll down to one of the lists that is off the form when it opens to actually see the problem.
Thanks for any help.
You can see in the video. Delete by click works, Delete by DragDrop Jumps back to the top of the Scrollpane.
I have a number of Horizontal ListViews on a ScrollPane. The ListViews contain TextArea controls which have been set up for drag and drop, sometimes the drag and drop involves deleting the item from the ListView. The problem is, when you delete using drag and drop the ScrollPane Jumps to the top. I can get back to where I was by saving and setting .VPosition on the ScrollPane but it flickers badly - very unprofessional.
I don't know if this is a bug or if I am doing something wrong.
I have included a project which illustrates the problem. It is a quick hack. I have tried several ways to delete the item after the DragDrop is complete but none seem to work.
If you select an item in any of the lists and then click the "Delete (X)" box associated with that listview it works fine.
If you select an item in the list and drag it to the "Delete (X)" box it works but jumps back to the top of the ScrollPane. You have to actually scroll down to one of the lists that is off the form when it opens to actually see the problem.
Thanks for any help.
You can see in the video. Delete by click works, Delete by DragDrop Jumps back to the top of the Scrollpane.
Attachments
Last edited: