ShowFormatRegionDialog(Chart: IChart; Parent: IWin32Window);
Chart
Parent - a dialog box, for which this dialog box will be modal.
The ShowFormatRegionDialog method opens the Chart Area Format dialog box for a specified chart.
To execute this example a regular report is required. Active sheet of the report contains a chart with the identifier Chart1.
Sub FormatRegionDialog;
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.ShowFormatRegionDialog(Chart, Wnd);
End Sub FormatRegionDialog;
This example is a regular report macro. Executing this macro displays the Chart Area Format dialog box for the specified chart.
See also: