Author Topic: ListView Multi-select Drag/Drop limitation  (Read 549 times)

honkinberry

  • Full Member
  • ***
  • Posts: 138
ListView Multi-select Drag/Drop limitation
« 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

Fred Tomke

  • OpenDCL Technician
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2048
  • [ Mr. Bad Guy ]
    • Kommunale Entwicklungsplanung auf digitaler Basis - digital landscape and urban design
Re: ListView Multi-select Drag/Drop limitation
« Reply #1 on: October 23, 2018, 12:48:49 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]