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

TdxBar.Reset(Boolean) Method

Restores the current toolbar’s settings.

#Declaration

Delphi
procedure Reset(AShowConfirmation: Boolean = False);

#Parameters

Name Type
AShowConfirmation Boolean

#Remarks

Call the Reset method to restore the original settings of the current toolbar. By default, only settings related to toolbar item links will be restored. To restore additional settings – such as size, position, docking style, state, etc. – set the bar manager’s UseFullReset property to True.

The Reset method fires the OnBarBeforeReset and the OnBarAfterReset events. Handle these events to perform specific actions before and after reset operations.

At runtime, the Reset method can be invoked by clicking the Reset button within the Toolbars page of the Customization Form.

To reset a toolbar with a confirmation request, use the ResetWithConfirmation method.

To make a reset and display of the confirmation dialog optional for individual toolbars, handle a bar manager’s OnBarReset event.

See Also