Skip to main content

TdxBar.Reset(Boolean) Method

Restores the current toolbar’s settings.

Declaration

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