TdxStatusBarPanelStyle.EndUpdate Method
Applies all pending changes and redraws the parent status bar after a BeginUpdate call.
Declaration
procedure EndUpdate;
Remarks
Every time you modify a panel setting, the parent status bar control redraws content to reflect the change. Enclose multiple setting changes between BeginUpdate and EndUpdate procedure calls to avoid UI flickering due to excessive redraw operations and to improve performance.
BeginUpdate/EndUpdate and Batch Changes
A BeginUpdate procedure call disables notifications and postpones all changes until an EndUpdate call. A subsequent EndUpdate call does the following:
- Re-enables change notifications and corresponding redraw operations
- Applies all changes made after a BeginUpdate call
- Sends corresponding notifications in a batch
- Redraws the parent status bar control.
Note
Ensure that every BeginUpdate call is followed by an EndUpdate call, even if an exception is thrown. Otherwise, the status bar control remains frozen and unresponsive.
See Also