TdxNavBarDefaultStyles.BeginUpdate Method
Prevents the NavBar control from being repainted until the EndUpdate method is called.
Declaration
procedure BeginUpdate;
Remarks
The BeginUpdate
method is used in conjunction with the EndUpdate 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.