IUiChartClass.ShowCorridorsDialog

Syntax

ShowCorridorsDialog(Chart: IChart; Parent: IWin32Window);

Parameters

Chart: The chart for which corridors are to be created

Parent - a dialog box, for which this dialog box will be modal.

Description

The ShowCorridorsDialog method opens the Chart Corridors dialog box for a specified chart.

Example

To execute this example a regular report is required. Active sheet of the report contains a chart with the identifier Chart1.

Sub CorridorsDialog;
Var
    Wnd: IWin32Window;
    Sheet: IPrxSheet;
    Chart: IChart;
Begin
    Wnd := WinApplication.Instance.Windows.ForegroundWindow;
    Sheet := PrxReport.ActiveReport.ActiveSheet;
    Chart := (Sheet As IPrxTable).TabSheet.Objects.Object("Chart1"As IChart;
    UiChartClass.ShowCorridorsDialog(Chart, Wnd);
End Sub CorridorsDialog;

This example is a regular report macro. On executing the macro the Chart Corridors dialog box is displayed for the specified chart.

See also:

IUiChartClass