Sign in Join
FPDoc Onlineexperiment

TShellListView.HideSelection property

Member of TShellListViewpublishedIn unit ShellCtrls

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

Declaration

pascal
property HideSelection:;

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.

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

This description is the one of ComCtrls.TCustomListView.HideSelection.

See also

  • TListViewProperties
  • TListViewProperty

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.