System.Classes.TStringList.OnChanging

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnChanging: TNotifyEvent read FOnChanging write FOnChanging;

C++

__property TNotifyEvent OnChanging = {read=FOnChanging, write=FOnChanging};

Properties

Type Visibility Source Unit Parent
event public
System.Classes.pas
System.Classes.hpp
System.Classes TStringList

Description

Occurs immediately before the list of strings changes.

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 is triggered, notifying the control that the list has finished changing.

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

  1. An OnChanging event occurs.
  2. The strings are added, deleted, moved, or modified.
  3. An 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.

OnChanging is an event handler of type TNotifyEvent.

See Also