[Overview][Types][Classes][Index] Reference for unit 'TextStrings' (#lazutils)

TTextStrings.EndUpdate

Finishes an update process for the component.

Declaration

Source position: textstrings.pas line 89

public procedure TTextStrings.EndUpdate;

Description

EndUpdate is a method used to finish an active update process for the component.

For each call to BeginUpdate, there needs to be a corresponding call to EndUpdate. The methods are used as a pair to consolidate OnChanging and OnChange event notifications.

EndUpdate decrements the internal update counter incremented by calling BeginUpdate. When the update counter is a positive non-zero value, the Changed method is not called and the OnChange event handler is not signalled.

An Exception is raised if the internal update counter is <= 0 when the method is called. When the counter value reaches 0, the Changed method is called to signal the OnChange event handler (when assigned).

Use BeginUpdate to start an update process by incrementing the value for the internal counter.

Errors

Raises an Exception if the internal update counter is <;= 0 when the method is called.

See also

TTextStrings.BeginUpdate

  

Starts an update process for the component.

TStrings.EndUpdate


Version 4.0 Generated 2025-05-03 Home