TCustomTreeView.OnEdited property
Event handler signalled when the tree view control has been edited.
Declaration
property 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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
