IUiPrxControlEventArgs.Control

Syntax

Control: IPrxControl;

Control: Prognoz.Platform.Interop.Report.IPrxControl;

Description

The Control property returns control of the regular report that will be deleted, or which value has been changed.

Example

Executing the example requires that the repository contains a regular report that contains a control. Connect a unit to the regular report, select the connected unit an the EventsClass class as an event handler.

Add links to the Report, Ui system assemblies.

Class EventsClass: ReportEvents
// Change control value
Sub EventOnChangeControlValue(Args: IUiPrxControlEventArgs);
Begin
    WinApplication.InformationBox(
"Control has been changed " + Args.Control.Id);
End Sub EventOnChangeControlValue;
End Class EventsClass;

Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Ui;

Public Class EventsClass: PrxForeNetReportUserEventsClass
// Change control value
Public Override Sub EventOnBeforeChangeControlValue(Agrs: UiPrxControlCancelEventArgs);
Var
    WinAppCls: WinApplicationClassClass = 
New WinApplicationClassClass();
Begin
    WinAppCls.InformationBox(
"Control has been changed: " + Agrs.Control.Id, Null);
End Sub EventOnBeforeChangeControlValue;
End Class EventsClass;

When the event occurs, an information message containing identifier of the changed control is displayed.

See also:

IUiPrxControlEventArgs