Skip to main content

TdxCustomRangeControl.EndUpdate(Boolean) Method

Enables previously disabled repainting of the range control.

Declaration

procedure EndUpdate(AForceUpdate: Boolean = True);

Parameters

Name Type
AForceUpdate Boolean

Remarks

Each time the range control’s content is changed (such as the data range selection, scale zooming and scrolling, data range selection and visualization model and its settings, etc.), the control initiates repainting to reflect these changes.

To improve the performance of a range control-based application, enclose the code that performs multiple modifications to the range control’s content within the BeginUpdate/EndUpdate procedure blocks.

The BeginUpdate procedure postpones updates. To apply the changes made, invoke the EndUpdate procedure. Ensure that every call to BeginUpdate is followed by a call to the EndUpdate procedure, even if an exception occurs. You can pass False as the optional AForceUpdate parameter to discard the changes made to the control and allow any further changes.

See Also