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

TCustomTreeView.OnEdited

Event handler signalled when the tree view control has been edited.

Declaration

Source position: comctrls.pp line 3657

protected property TCustomTreeView.OnEdited : TTVEditedEvent
  read FOnEdited
  write FOnEdited;

Description

OnEdited is a TTVEditedEvent property with the event handler signalled when editing has been completed for a node on the tree view control.

OnEdited is signalled (when assigned) from the EndEditing method, and occurs when the edited text for the node is retrieved from the node editor and stored in the TTreeNode instance. It allows the application to examine, update, or override the value stored in the Text property for the node.

Arguments to the event handler include:

Sender
The object instance (TCustomTreeView) for the event.
Node
The TTreeNode instance for the edited value.
S
A String variable with the new value from the tree node editor. The handler routine can assign a new value to the argument.

OnEditing occurs after the States property has been updated to exclude tvsIsEditing from the flag values, and before the new value is stored in the TTreeNode instance.

Use OnEndEditing to perform actions needed when the tree node is disconnected from the internal node Editor and the control is redrawn.

Use OnEditing to perform actions needed when editing is started for a tree node on the control.

See also

TCustomTreeView.EndEditing

  

Updates the specified tree node and hides editor.

TCustomTreeView.States

  

Contains the state values in effect for the control.

TCustomTreeView.OnEditingEnd

  

Event handler signalled when EndEditing is called for the control.

TCustomTreeView.OnEditing

  

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

TTreeNode.Text

  

Text displayed for the tree node.

TTVEditedEvent

  

TTVEditedEvent - generic event handling method for a node that has been edited.


Version 3.2 Generated 2024-02-25 Home