From ef8ef84c04c9f25d2a19cfb96a00c758ad4c31aa Mon Sep 17 00:00:00 2001 From: dmitry Date: Sun, 12 Jan 2020 01:20:40 +0000 Subject: [PATCH] cocoa: not allowing a column of TListView to be selected automatically. git-svn-id: trunk@62532 - --- lcl/interfaces/cocoa/cocoawscomctrls.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lcl/interfaces/cocoa/cocoawscomctrls.pas b/lcl/interfaces/cocoa/cocoawscomctrls.pas index db15e9968f..10de8f48b2 100644 --- a/lcl/interfaces/cocoa/cocoawscomctrls.pas +++ b/lcl/interfaces/cocoa/cocoawscomctrls.pas @@ -1024,6 +1024,7 @@ begin lTableLV.setDataSource(lTableLV); lTableLV.setDelegate(lTableLV); lTableLV.setAllowsColumnReordering(False); + lTableLV.setAllowsColumnSelection(False); lCocoaLV.callback := lclcb; ScrollViewSetBorderStyle(lCocoaLV, TCustomListView(AWinControl).BorderStyle); @@ -1565,7 +1566,7 @@ begin case AProp of {lvpAutoArrange,} lvpCheckboxes: lTableLV.lclSetFirstColumCheckboxes(AIsSet); - lvpColumnClick: lTableLV.setAllowsColumnSelection(AIsSet); + // lvpColumnClick: lTableLV.setAllowsColumnSelection(AIsSet); { lvpFlatScrollBars, lvpFullDrag,} lvpGridLines: lTableLV.setGridStyleMask(GridStyle[AIsSet]);