In Delphi, how to make tListView always show the selected row, even if it is not focused.

The selected tListView row is displayed in blue, but only when the control has focus. I would like the selected row to always be displayed, regardless of whether the control has focus or not.

+4
source share
1 answer

Set the HideSelection property to False .

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

Set HideSelection to false to provide visual feedback to the selected item in the list, even if there is no focus in the list view. Set HideSelection to true to display the selection only if the focus of the list. HideSelection does not affect the actual value of the selection, but only the visual indication. By always setting HideSelection to false, you can make forms with many kinds of lists too busy.

+12
source

Source: https://habr.com/ru/post/1392508/


All Articles