Vcl.ComCtrls.TTVCompareEvent
C++
typedef void __fastcall (__closure *TTVCompareEvent)(System::TObject* Sender, TTreeNode* Node1, TTreeNode* Node2, int Data, int &Compare);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
typedef | public | Vcl.ComCtrls.hpp | Vcl.ComCtrls | Vcl.ComCtrls |
Description
Used in the TCustomTreeView.OnCompare event.
This event is used in the TCustomTreeView.OnCompare event when two nodes must be compared during a sort of the nodes in the tree view.
The Sender parameter is the tree view whose nodes are compared.
Node1 and Node2 are the nodes being compared.
Compare parameter is less than 0 if Node1 is less than Node2. Compare is 0 if Node1 is equivalent to Node2, and Compare is greater than 0 if Node1 is greater than Node2.