Skip to main content

TdxNavBarDefaultStyles.EndUpdate Method

Applies all pending changes after a BeginUpdate procedure call.

Declaration

procedure EndUpdate;

Remarks

The EndUpdate method is used in conjunction with the BeginUpdate method. When the BeginUpdate method is called, the internal counter is incremented by one. The counter value is initially zero. When the EndUpdate method is called, the counter is decremented. The NavBar control can recalculate its ViewInfo information only if the counter value is 0. Recalculation of the control’s ViewInfo information leads to its repainting.

Use this pair of methods to avoid multiple recalculations when performing a number of sequential changes to the default style properties. For instance, you may wish to change the background colors of the GroupHeader and GroupBackground default styles. If the code performing these changes is not enclosed within the BeginUpdate and EndUpdate method calls, the control will be repainted twice. Otherwise, only a single repainting will be performed.

See Also