Used in the TCustomTreeView.OnCompare event.
TTVCompareEvent = procedure (Sender: TObject; Node1, Node2: TTreeNode; Data: Integer; var Compare: Integer) of object;
(Sender: TObject; Node1, Node2: TTreeNode; Data: Integer; var Compare: Integer) ( TTVCompareEvent)();
ComCtrls
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.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|