Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxUIAdornerManager.BeginUpdate Method

In This Article

Disables repainting of the badge and/or guide UI adorner layers until the EndUpdate procedure call.

#Declaration

Delphi
procedure BeginUpdate;

#Remarks

The UI adorner manager repaints the enabled adorner layers separately from the underlying form. Each change made to a guide or badge within the corresponding collection results in repainting the UI adorner layers on top of the parent form to reflect the changes. Therefore, performing multiple changes to adorners results in a sequence of multiple adorner layer repaint operations which can result in flickering and low application performance. To optimize the code performing multiple adorner appearance changes, enclose it within the BeginUpdate/EndUpdate procedure blocks.

The BeginUpdate procedure postpones the effect of changes made to adorners. Call the EndUpdate procedure to apply all the pending changes. Ensure that every BeginUpdate call is followed by an EndUpdate call, even if an exception occurs.

See Also