[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TCustomTreeView.OnChange

Event handler for a change notification in the tree view control.

## Declaration

Source position: comctrls.pp line 3669

`protected property TCustomTreeView.OnChange : TTVChangedEvent read FOnChange write FOnChange;`

## Description

OnChange is a TTVChangedEvent property with the event handler signalled when a new tree node is selected on the tree view control.

It is called from the Change method. It occurs when the change timer is triggered while getting accessibility object information for a newly selected node on the tree view control. The Sender argument contains the tree view control for the change notification. The Node argument indicates the tree node for the change notification.

## See also

TCustomTreeView.Change |  | Performs actions needed when the selection in the control has been changed to include the specified tree node.
TCustomTreeView.DoSelectionChanged |  | Performs actions needed when the selection for the tree view has been changed.
TTVChangedEvent |  | Specifies an event handler signalled when a tree node has been changed.