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

TdxBarManager.AllowReset Property

Specifies whether an end-user can restore a selected toolbar.

#Declaration

Delphi
property AllowReset: Boolean read; write; default True;

#Property Value

Type Default
Boolean True

#Remarks

When a bar manager’s Customization Form is displayed at runtime, toolbars can be modified. By default, an end-user can restore the original settings of the selected toolbar by clicking the Reset button on the Customization Form. This can be prevented, if required, by setting the AllowReset property to False. In this instance the Reset button is hidden.

In the following picture, the Customization Form with the Reset button is displayed.

The default settings of a toolbar can be restored by clicking the Reset Toolbar button in the toolbar’s Quick Customization Popup Menu or the Reset button on the Customization Form. Use the bar’s AllowReset property to prohibit or allow restoring.

If the AllowReset property is set to False, a toolbar can be restored via the ResetToolbar method.

To make a reset optional for individual toolbars, handle a bar manager’s OnBarReset event.

The default value of the AllowReset property is True.

See Also