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

TCustomTreeView.EndEditing

Updates the specified tree node and hides editor.

Declaration

Source position: comctrls.pp line 3593

protected procedure TCustomTreeView.EndEditing(

  Cancel: Boolean = False

); virtual;

Description

No actions are performed in the method if tvsIsEditing has not been included in the States property (BeginEditing was not called).

EndEditing removes the value tvsIsEditing from the States property to indicate that editing has been completed for the control.

The OnEdited event handler is signalled (when assigned) to validate or modify the new text value, and the text is stored in Node.

EndEditing calls the Invalidate method to redraw the control.

See also

TCustomTreeView.States

  

Contains the state values in effect for the control.

TCustomTreeView.BeginEditing

  

Prepares the control to edit the text for the specified tree node.

TCustomTreeView.OnEdited

  

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

TTreeNode.Text

  

Text displayed for the tree node.

TTreeViewStates

  

Set type used to store values from the TTreeViewState enumeration.

TTreeViewState

  

TTreeViewState - enumerated type containing the permissible values for state of a TTreeView.


Version 3.2 Generated 2024-02-25 Home