RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStringList.OnChange Event

Occurs immediately after the list of strings changes.

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

Write an OnChange event handler to respond to changes in the list of strings. For example, if the string list is associated with a control, the OnChange event handler could tell the control to repaint itself whenever the content of the list changes. 

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

 

  1. An OnChanging event occurs before the change. 

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

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

 

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