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

TCustomTreeView.OnDeletion

Event handler signalled when a node is deleted from the node tree.

Declaration

Source position: comctrls.pp line 3676

protected property TCustomTreeView.OnDeletion : TTVExpandedEvent
  read FOnDeletion
  write FOnDeletion;

Description

OnDeletion is a TTVExpandedEvent property with the event handler signalled when a tree node is deleted from the node tree in the Items property. It is signalled (when assigned) from the Delete method. It occurs when a TTreeNode instance in Items is freed.

Arguments to handler routine include:

Sender
The object instance (TCustomTreeView) for the event notification.
Node
The TTreeNode instance which is being deleted.

OnDeletion occurs after the States property in the tree view has been updated to include nsDeleting, and before the TTreeNode instance is destroyed.

See also

TCustomTreeView.Delete

  

Performs actions needed when the specified tree node is deleted.

TCustomTreeView.States

  

Contains the state values in effect for the control.

TCustomTreeView.Items

  

The container with the TTreeNode instances for the control.

TTreeNode.Destroy

  

Destructor for the class instance.


Version 4.0 Generated 2025-05-03 Home