ShowScalePropsDialog Command

Purpose

Opens a standard dialog box used to edit the scales of a regular report.

Parameters of Use

Command parameters are passed in the Data property. Executing the command requires to specify the following value in this property:

Value type Description
IPrxReport The regular report, for which it is required to show the scale edit dialog box.

Application Features

The command can be used only for regular reports.

Example

Executing the example requires a form with the Button1 button, the ReportBox component and the UiReport component named UiReport1, which is used as a data source for the ReportBox component. UiReport1 is connected to a regular report.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Target: IUiCommandTarget;
        Context: IUiCommandExecutionContext;
    Begin
        Target := WinApplication.Instance.GetPluginTarget("Report");
        Context := Target.CreateExecutionContext;
        Context.Data := UiReport1.Instance;
        Target.Execute("ShowScalePropsDialog", Context);
    End Sub Button1OnClick;

The scale edit dialog box of the regular report that is connected in the UiReport1 component is shown on the button click.

See also:

IUiCommandTarget.Execute