RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeNodes.BeginUpdate Method

Prevents the updating of the tree view until the EndUpdate method is called.

Pascal
procedure BeginUpdate;
C++
__fastcall BeginUpdate();

BeginUpdate prevents the screen from being repainted when new nodes are added, deleted, or inserted. Tree nodes affected by the changes will have invalid Index values until EndUpdate is called. 

Use BeginUpdate to prevent screen repaints and to speed processing time while adding nodes to the tree view.

Note: Calls to BeginUpdate are cumulative; for every call to BeginUpdate there must be a corresponding call to EndUpdate.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!