Vcl.ComCtrls.TTreeView.OnChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnChange: TTVChangedEvent read FOnChange write FOnChange;

C++

__property OnChange;

Properties

Type Visibility Source Unit Parent
event published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTreeView

Description

Occurs whenever the selection has changed from one node to another.

Vcl.ComCtrls.TTreeView.OnChange inherits from Vcl.ComCtrls.TCustomTreeView.OnChange. All content below this line refers to Vcl.ComCtrls.TCustomTreeView.OnChange.

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.

See Also