[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 1563

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 hightlighting is retained when the control loses focus.

The default value for the property is True. 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 Accessiblity roles and descriptions.