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

4.8k views Asked by At

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.

1

There are 1 answers

2
David Heffernan On BEST ANSWER

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.