Vcl.ComCtrls.TCustomTreeView.OnChange
Delphi
property OnChange: TTVChangedEvent read FOnChange write FOnChange;
C++
__property TTVChangedEvent OnChange = {read=FOnChange, write=FOnChange};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomTreeView |
Description
Occurs whenever the selection has changed from one node to another.
Write an OnChange event handler to take specific action when the selected node changes. The Sender parameter is the tree view whose selected node changes, and the Node parameter is the newly selected node.
Note: The OnChange event does not occur for nodes selected using the right mouse button when RightClickSelect is true. To respond to changes in the value of the Selected property when RightClickSelect is true, use the OnMouseUp event.
OnChange is an event handler of type Vcl.ComCtrls.TTVChangedEvent.