RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStrings.BeginUpdate Method

Enables the TWideStrings object to track when the list of strings is changing.

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

BeginUpdate is called automatically by any property or method that changes the list of strings. Once the changes are complete, the property or method calls EndUpdate. Call BeginUpdate before directly modifying the strings in the list, and EndUpdate after. When implementing properties or methods that change the list in descendants of TWideStrings, call BeginUpdate before the changes are made, and EndUpdate when the changes are complete. 

TWideStrings simply keeps track of when the list of strings is being changed. Some descendants of TWideStrings use this information to perform certain actions, such as telling a control to repaint, when updates are complete. 

 

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