TCustomTreeView.BeginEditing procedure
Prepares the control to edit the text for the specified tree node.
Declaration
procedure BeginEditing(ANode: TTreeNode); virtualDescription
No actions are performed in the method for any of the following conditions:
- ANode has not been assigned (contains Nil).
- ANode is not visible.
- BeginEditing has been called and EndEditing has not yet been called.
- CanEdit (and the OnEditing event handler) returns False.
If a different node is being edited in the control, the EndEditing method is called.
BeginEditing updates the States property to include the value tvsIsEditing.
The TEdit control used as the Editor in the tree view is created (when needed), configured, and aligned to the display rectangle for the tree node. The value in the TTreeNode.Text property is assigned to the Editor, its content is selected, and the Editor is given focus.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
