Skip to main content

TdxCustomNavBar.BeginUpdate Method

Prevents the control from being updated until the EndUpdate method is called.

Declaration

procedure BeginUpdate;

Remarks

The BeginUpdate method should be used in combination with the EndUpdate method to prevent the control from being updated while performing sequential changes. The BeginUpdate method increments the internal counter (which is initially zero) by one and the EndUpdate method decrements it. The NavBar control only recalculates its ViewInfo information and repaints itself when the counter value is zero. This enables you to perform batch modifications.

Suppose you need to change the expanded state of several groups. By default, this will result in updating the control after each group’s expanded state has changed. To avoid this, enclose your code within BeginUpdate and EndUpdate method calls. The control will only be repainted once, which gives you a performance benefit and avoids flicker.

See Also