Vcl.ComCtrls.TCustomTreeView.OnCompare

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also