Sign in Join
FPDoc Onlineexperiment

TTextStrings.EndUpdate procedure

Member of TTextStringspublicIn unit TextStrings

Finishes an update process for the component.

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.