Applies to
Declaration
property OnProgress: TNotifyEvent;
Description
The OnProgress event fires at regular intervals when loading or writing to a stream, or when the text is reformatted due to one of the following properties being assigned a new value: AltFont, Font, BorderStyle, TabStops, LeftMargin, RightMargin, ScrollBars, Width, WordWrap (if Alignment is taLeftJustify),.
Property ProgressInterval determines the time between successive OnProgress events in milliseconds. Property FormatCompleted may be used to determine the percentage of completion of text formatting, if this is the operation leading to the OnProgress event.
Care should be taken that the TPlusMemo or TDBPlusMemo is not modified while in the OnProgress handler, as this could lead to invalid internal data. This is particularly true if your handler calls Application.ProcessMessage to enable your application or other ones to respond to the user. A safer way to avoid the long latency when the conditions enumerated above occur is to use background parsing and formatting with the help of property UpdateMode.