TdxBarManager.EndUpdate(Boolean) Method
Enables updating of a bar manager after a call to the BeginUpdate method.
Declaration
procedure EndUpdate(ACheckBarsChanges: Boolean = True);
Parameters
Name | Type |
---|---|
ACheckBarsChanges | Boolean |
Remarks
Each time you modify a bar manager’s property which influences the appearance of toolbars and their items, 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 EndUpdate methods you can use the LockUpdate property.
ACheckBarsChanges specifies whether to repaint bars if they were changed. Set ACheckBarsChanges to True, to redraw bars.