RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomOutline.SetUpdateState Method

Enables or disables the maintenance of the node indexes.

Pascal
procedure SetUpdateState(Value: Boolean);
C++
__fastcall SetUpdateState(Boolean Value);

Call SetUpdateState with Value set to true to block the recomputation of indexes. Call SetUpdateState with Value set to false to recompute all indexes in the outline and enable the maintenance of indexes with every change to the nodes in the outline.  

Unlike calls to BeginUpdate and EndUpdate, calls to SetUpdateState do not nest: Calling SetUpdateState with Value set to false always recomputes the indexes regardless of the number of previous calls to SetUpdateState with Value set to true.

Note: Calling SetUpdateState takes precedence over any enabling or disabling of index maintenance provided by BeginUpdate or EndUpdate.
 

 

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