[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Event handler signalled to compare and sort tree nodes in their default order.
Source position: comctrls.pp line 3670
protected property TCustomTreeView.OnCompare : TTVCompareEvent |
OnCompare is a TTVCompareEvent property with the event handler signalled to compare nodes on the tree view control. It is signalled (when assigned) to determine the sort order for tree nodes in the DefaultTreeViewSort method. Arguments to the event handler include:
If OnCompare is not assigned, the sort order for tree nodes is determined using the AnsiCompareStr (on Windows) or CompareStr (on UNIX-like platforms) routines.
|
DefaultTreeViewSort - returns result of string comparison between names of Node1 and Node2 |
|
|
If True, the external method specified in SortProc is used for sorting. |
|
|
Sorts tree nodes using default sort procedure (alphabetic). |
Version 4.0 | Generated 2025-05-03 | Home |