Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Delphi, how can I force tListView to always show selected row, even when not focused.

The selected row of a tListView appears blue, but only when the control has focus. I'd like the selected row to always be displayed, whether the control has focus or not.

like image 932
David Dubois Avatar asked Dec 10 '22 03:12

David Dubois


1 Answers

Set the HideSelection property to False.

Determines whether the list view gives a visual indication of which item is selected when focus shifts to another control.

Set HideSelection to false to provide visual feedback of the selected item in the list even when the list view does not have focus. Set HideSelection to true to show the selection only when the list view has focus. HideSelection does not affect the actual value of the selection, only the visual indication. Always setting HideSelection to false can make forms with many list views look too busy.

like image 96
David Heffernan Avatar answered Dec 11 '22 16:12

David Heffernan