[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Specifies a routine used to compare the values in two items in a list view control.
Source position: comctrls.pp line 1303
type TLVCompare = function( |
Item1: TListItem; |
Item2: TListItem; |
AOptionalParam: PtrInt |
):Integer; |
Item1 |
|
First list item for the comparison. |
Item2 |
|
Second list item for the comparison. |
AOptionalParam |
|
Pointer to an optional Integer value used in the comparison. |
Relative sort order for the specified list items.
TLVCompare is a routine used to determine the relative sort order for the list items passed in the Item1 and Item2, and allows an optional Integer parameter value used in the comparison. The return value is the relative sort order for the TListItem instances. For example:
A TLVCompare type is passed as an argument to the CustomSort method in TCustomListView.
|
Sorts the Items for the list view control using the specified procedure or the OnCompare event handler. |
|
|
Represents the items created in TCustomListView and descendants. |
|
|
Specifies an event handler signalled to compare two items in a List View control. |
Version 3.2 | Generated 2024-02-25 | Home |