RAD Studio VCL Reference
TStringList.OnChange Event

Occurs immediately after the list of strings changes.

property OnChange: TNotifyEvent;
__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: 

1An OnChanging event occurs before the change. 

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

3An 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!