Sign in Join
FPDoc Onlineexperiment

TListControlItems.DoOnCompare function

Member of TListControlItemsprotectedIn unit ComboEx

Signals the OnCompare event handler to compare items in the collection.

Declaration

pascal
function DoOnCompare(AItem1: TListControlItem; AItem2: TListControlItem)
: Integer

Arguments

AItem1

First TListControlItem for the comparison.

AItem2

Second TListControlItem for the comparison.

Function result

Relative sort order for the compared items.

Description

DoOnCompare is called from the Sort method when SortType is set to stData or stBoth.

See also

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