Vcl.ComCtrls.TTVCompareEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TTVCompareEvent = procedure(Sender: TObject; Node1, Node2: TTreeNode; Data: Integer; var Compare: Integer) of object;

C++

typedef void __fastcall (__closure *TTVCompareEvent)(System::TObject* Sender, TTreeNode* Node1, TTreeNode* Node2, int Data, int &Compare);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Vcl.ComCtrls.pas
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.

See Also