ListView with MultiSelect incorrectly deselects items on MouseDown
Original Reporter info from Mantis: Brett
-
Reporter name:
Original Reporter info from Mantis: Brett
- Reporter name:
Description:
When using a ListView with MultiSelect=true, clicking the mouse button down on the selected list items to start a drag operation deselects all but the item being clicked on.
I believe this is caused by the fix for https://bugs.freepascal.org/view.php?id=33330, where ListViewProc() in win32wscustomlistview.inc is creating an LM_LBUTTONUP message. The problem is that this causes the list items to be deselected on MouseDown when you try to drag them, rather than on MouseUp.
I've attached a sample project to demonstrate, but it's not really necessary.
Steps to reproduce:
- Create TListView with some items and MultiSelect=true
- Select some items with shift+click or ctrl+click
- Mouse down on the selection to initiate a drag-drop operation
- Watch all items except the current one get deselected
Additional information:
Problem is new in Lazarus 2.0, does not occur in 1.8.4.
Mantis conversion info:
- Mantis ID: 35362
- Platform: Windows
- Fixed in version: 2.2
- Fixed in revision: 63012 (#13e6d2cd),63013 (#11e9158f)
- Monitored by: » @martin_frb (Martin Friebe)
- Target version: 2.2