RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringList.OnChanging Event

Occurs immediately before the list of strings changes.

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

Write an OnChanging event handler to prepare for changes in the list of strings. For example, if the string list is associated with a control, the OnChanging event handler could tell the control to disable repaints until the OnChange event when the list has finished changing. 

Whenever strings in the list are added, deleted, moved, or modified, the following events take place: 

1An OnChanging event occurs. 

2The strings are added, deleted, moved, or modified. 

3An OnChange event occurs after the changes are complete.

Note: OnChanging occurs for every change made to the list, regardless of whether the application calls BeginUpdate and EndUpdate around a series of changes.
 

 

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