[patch] Improved TListView selection handling
Original Reporter info from Mantis: Yury
-
Reporter name: Yuriy Sydorov
Original Reporter info from Mantis: Yury
- Reporter name: Yuriy Sydorov
Description:
This patch improves handling of TListView selection to be more Delphi compatible and provides a bug fix.
- Set correct ItemIndex and Selected properties before calling OnChange.
- if OwnerData: Prevent crash when accessing the Selected property inside the OnChange handler.
- if OwnerData: Call the OnSelectItem handler when the selection is cleared.