RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.CanChange Method

Pending node change event dispatcher.

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

CanChange is called automatically whenever an attempt is made to change the selected node. The Node parameter indicates the currently selected node. CanChange returns true if selection can move away from the specified node, false otherwise. 

If there is no OnChanging event handler, CanChange returns true. 

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

 

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