Sub EventOnBeforeActivateSheet(Args: IUiPrxCancelActivateSheetEventArgs);
Begin
// set of operators
End Sub EventOnBeforeActivateSheet;
Args - the parameter, which enables the user to work with event parameters.
The EventOnBeforeActivateSheet method implements the event that occurs before changing the active sheet of the regular report.
Sub EventOnBeforeActivateSheet(Args: IUiPrxCancelActivateSheetEventArgs);
Begin
Args.Cancel := Not WinApplication.ConfirmationBox("MAke active " + Args.NewSheet.Name);
End Sub EventOnBeforeActivateSheet;
When the event occurs, a dialog box for confirmation of the sheet change opens. Answer Yes to change the active sheet, otherwise the active sheet is not changed.
See also: