TListControlItems.OnCompare property
Event handler signalled to sort the collection using the data in the collection items.
Declaration
property OnCompare: TListCompareEvent read FOnCompare write FOnCompare;Description
OnCompare is a
TListCompareEvent property with the
event handler signalled to sort the collection using the arbitrary data
stored in each collection item. Applications must implement and assign an
object procedure using the signature in TListCompareEvent to allow responding
to the event notification.
OnCompare is signalled in the DoOnCompare method. Set the value in
SortType to stData to enable the event handler when the
Sort method is called. Use the CustomSort method to
sort the collection using a TListItemsCompare routine.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
