[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomListView.HideSelection

If control looses focus, don't paint selection background for selected item(s).

Declaration

Source position: comctrls.pp line 1575

protected property TCustomListView.HideSelection : Boolean
  index Ord(lvpHideSelection)
  read GetProperty
  write SetProperty
  default True;

Description

HideSelection is a Boolean property which indicates if the selected item(s) for the list view are highlighted when the control loses focus. When set to True, the selected item(s) are redrawn to remove the selection highlighting. When set to False, the selection highlighting is retained when the control loses focus. The default value for the property is True.

HideSelection is one of the TListViewProperty values included in the TListViewProperties set type and exchanged with the widgetset class. The property value is read from and written to the TCustomTreeview widgetset class instance when its handle is valid. Changing the value for the property causes the widgetset class to be updated with the new value.

Remark: The Windows API documentation recommends setting HideSelection to False if the application uses Accessibility roles and descriptions.
Remark: HideSelection is not supported for the QT4, QT5, and QT6 widgetsets.

See also

TListViewProperties

  

Set type used to store values from the TListViewProperty enumeration.

TListViewProperty

  

Represents Boolean properties used in TCustomListView.


Version 3.2 Generated 2024-02-25 Home