TdxBarManager.AllowReset Property
Specifies whether an end-user can restore a selected toolbar.
Declaration
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.