Vcl.ComCtrls.TCustomTreeView.OnCompare
Delphi
property OnCompare: TTVCompareEvent read FOnCompare write FOnCompare;
C++
__property TTVCompareEvent OnCompare = {read=FOnCompare, write=FOnCompare};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomTreeView |
Description
Occurs when two nodes must be compared during a sort of the nodes in the tree view.
Write an OnCompare event handler to customize the sort order of the nodes in the tree view. If an OnCompare event handler is not provided, tree view nodes are sorted alphabetically, based on their labels.
OnCompare is an event handler of type Vcl.ComCtrls.TTVCompareEvent.