Mouse events do not fire properly when MultiSelect = True on TListView of win32/64
Original Reporter info from Mantis: takubo
-
Reporter name: Toru Takubo
Original Reporter info from Mantis: takubo
- Reporter name: Toru Takubo
Description:
The behavior for mouse events of TListView are different when MultiSelect=True or False.
*** In case of MultiSelect=False ***
[On Left Click]
- OnMouseDown
- OnClick
- OnMouseUp
[On Right Click]
- OnMouseDown
- OnMouseUp
[On Left Double Click]
- OnMouseDown
- OnClick
- OnMouseUp
- OnMouseDown
- OnDoubleClick
- OnMouseUp
[On Right Double Click]
- OnMouseDown
- OnMouseUp
- OnMouseDown
- OnMouseUp
*** In case of MultiSelect=True ***
[On Left Click]
- OnMouseDown
[On Right Click]
- OnMouseDown
[On Left Double Click]
- OnMouseDown
- OnDoubleClick
- OnClick
- OnMouseUp
[On Right Double Click]
- OnMouseDown
- OnMouseDown
- OnMouseUp
As you see, some events are missing when MultiSelect is True. Furthermore, the order of OnClick and OnDoubleClick is reversed. Only OnMouseDown seems to work correctly.
Steps to reproduce:
Set TListView.Multiselect property to TRUE.
Additional information:
This problem occurs on Win32/Win64. Not observed on Linux platform.
Mantis conversion info:
- Mantis ID: 33330
- OS: WinXP SP3 32bit / Win7 SP1 64bit
- Platform: Windows
- Version: 1.8.2
- Fixed in revision: 57906 (#fb89a71b)
- Target version: 1.10