Sign in Join
FPDoc Onlineexperiment

TTreeView.OnEditing property

Member of TTreeViewpublishedIn unit ComCtrls

Event handler signalled to determine whether the editor can be enabled for a tree node.

Declaration

pascal
property OnEditing:;

Description

OnEditing is a TTVEditingEvent property with the event handler signalled to determine whether an editor can be enabled for a node on the tree view control. OnEditing is signalled (when assigned) from the CanEdit method, and occurs when the BeginEditing method is called. This can be in response to a key down event handled for the tree view control, or when the EditText method is called for a TTreeNode instance in Items.

Arguments to the event handler include:

Sender
The object instance (TCustomTreeView) for the event.
Node
The TTreeNode instance to be edited on the control.
AllowEdit
A Boolean variable argument which indicates whether the node editor can be enabled for the tree node. The handler routine can set AllowEdit to False to prevent the node editor from being enabled.

Use OnEdited to perform actions needed when editing has been completed for the node.

Use OnEditingEnd to perform actions needed when a tree node is disconnected from the node editor for the control.

This description is the one of ComCtrls.TCustomTreeView.OnEditing.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.