RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.CanEdit Method

Node editing event dispatcher.

Pascal
function CanEdit(Node: TTreeNode): Boolean; dynamic;
C++
__fastcall Boolean CanEdit(TTreeNode Node);

CanEdit is called automatically whenever an attempt is made to edit the node specified by the Node parameter. CanEdit returns true if the user can edit the specified node, false otherwise. 

If there is no OnEditing event handler, CanEdit returns true. 

Override this method to make additional, class-specific responses in addition to the OnEditing event or to suppress the OnEditing event. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!