Sign in Join
FPDoc Onlineexperiment

TListView.ColumnClick property

Member of TListViewpublishedIn unit ComCtrls

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

Declaration

pascal
property ColumnClick:;

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.

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.

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

See also

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