TdxBarManager.OnBarReset Event
Enables you to cancel resetting toolbar settings and prohibit the confirmation dialog from being displayed to end-users.
Declaration
property OnBarReset: TdxBarResetEvent read; write;
Remarks
This event is fired when toolbar settings are reset using any of the following methods:
A bar manager’s ResetToolbar method call;
A call to the Reset or ResetWithConfirmation method of a toolbar;
The Reset button click on the Toolbars page of the Customization Form.
Sender specifies the bar manager that fired this event.
ABar specifies a toolbar to be reset.
Pass True as AHandled to cancel resetting toolbar settings. In this instance, all methods and events associated with a reset (such as DoBarBeforeReset, DoBarAfterReset, OnBarBeforeReset, OnBarAfterReset, etc.) will not be called/fired.
Pass False as AShowConfirmation to prohibit the confirmation dialog from being displayed to end-users.