RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.OnChanging Event

Occurs when the selection is about to change from one node to another.

Pascal
property OnChanging: TTVChangingEvent;
C++
__property TTVChangingEvent OnChanging;

Write an OnChanging event handler to selectively prevent selection from moving to specific nodes. 

The TTVChangingEvent type points to a method that is called when the selection is about to be changed from one node to another. Set AllowChange to false, to prevent selection from moving to a new node. The Node parameter specifies the node that is about to be selected. 

 

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