IUiPrxCancelActivateSheetEventArgs.Cancel

Syntax

Cancel: Boolean;

Description

The Cancel property determines whether the active sheet of the regular report is to be changed. If the property is set to True, the regular report sheet is not activated; if the property is set to False, the sheet is activated.

Example

Consider the event that occurs before a sheet is changed.

Sub EventOnBeforeActivateSheet(Args: IUiPrxCancelActivateSheetEventArgs);

Begin

Args.Cancel := Not WinApplication.ConfirmationBox("MAke active " + Args.NewSheet.Name);

End Sub EventOnBeforeActivateSheet;

When this event occurs, a dialog box to confirm sheet change opens. Answer Yes to change the active sheet, otherwise the active sheet is not changed.

See also:

IUiPrxCancelActivateSheetEventArgs