From RAD Studio API Documentation
Jump to: navigation, search


property OnChange: TNotifyEvent read FOnChange write FOnChange;


__property TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};


Type Visibility Source Unit Parent
event public
System.Classes TStringList


Occurs immediately after the list of strings changes.

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.

OnChange is an event handler of type System.Classes.TNotifyEvent.

See Also

Code Examples