Skip to main content

TdxBarManager.BeginUpdate Method

Prevents a bar manager from being updated until the EndUpdate method is called.

Declaration

procedure BeginUpdate;

Remarks

Each time you modify a bar manager’s property which influences the appearance of toolbars and their items, the bar manager is updated to reflect these changes. If you need to change several properties at once, flickering may occur. In this instance you can wrap the code that makes the changes in calls to the BeginUpdate/EndUpdate methods to prevent this.

The BeginUpdate method postpones updates. To apply the changes made, you should call the EndUpdate method.

Ensure that every call to BeginUpdate has a corresponding call to the EndUpdate method, even if an exception occurs.

Instead of the BeginUpdate and the EndUpdate methods you can use the LockUpdate property.

See Also