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

TCustomListView.ColumnClick

Enables or disables OnColumnClick events for column headers on the control.

Declaration

Source position: comctrls.pp line 1581

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

Description

ColumnClick is an indexed Boolean property which controls whether the OnColumnClick event handler is signalled when a Report view column header is clicked. It also controls whether a column header is drawn using the "pressed" or "down" state while the mouse button is down on a column header. The default value for the property is True, and enables both the event handler and the header drawing state (on supported platforms).

ColumnClick 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: Changing the property value causes the handle for the widgetset class to be recreated on the Windows platform. This causes multi-selections to be cleared - but the last item in the multi-selection is retained as the selected item.

ColumnClick is used in the ColClick method, which is called when the LVN_COLUMNCLICK control notification message is handled for the list view control.

See also

TCustomListView.OnColumnClick

  

Event handler signalled when a column header for the control is clicked.

TCustomListView.ColClick

  

Performs actions to handle a mouse click on a Report view column header.

TListViewProperties

  

Set type used to store values from the TListViewProperty enumeration.

TListViewProperty

  

Represents Boolean properties used in TCustomListView.


Version 4.0 Generated 2025-05-03 Home