ListView Multi-select Drag/Drop limitation

Started by honkinberry, June 28, 2018, 04:19:45 PM

Previous topic - Next topic

honkinberry

I have a ListView that is set to Multiple Selection, and Drag/Drop Allow Begin, but if multiple items are selected when beginning the drag, the selection changes to just one item being selected.  I'd like to drag the entire selection.
Any thoughts on if it's something that be addressed?

Thanks!

--J

Fred Tomke

Quote from: honkinberry on June 28, 2018, 04:19:45 PM
I have a ListView that is set to Multiple Selection, and Drag/Drop Allow Begin, but if multiple items are selected when beginning the drag, the selection changes to just one item being selected.  I'd like to drag the entire selection.
Any thoughts on if it's something that be addressed?

Thanks!

--J

Yeah, welcome to hell: I've fighten with the same. I needed

  • multiple selection
  • OnSelChanged
  • OnDblClicked
  • OnDragBegin
  • OnDrop
  • in a palette with the possibility of modifications for the drawing databse (AllowCommand)

In the end I used OnMouseMove to store the current selection.
Note that the events are fired in a fixed order. So you can build on it.
That means when OnMouseMove is fired right before DragBegin, you choose the previously stored selection.
But you have to figure out the order with commandline prints.

Hope that helps,
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]