ShowAxisFormatDialog(Axis: IChartAxis; Parent: IWin32Window);
Axis: Chart axis, parameters of which are to be changed.
Parent - a dialog box, for which this dialog box will be modal.
The ShowAxisFormatDialog method opens the Axis Format dialog box for a specified chart axis.
To execute this example a regular report is required. Active sheet of the report contains a chart with the identifier Chart1.
Sub AxisFormatDialog;
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.ShowAxisFormatDialog(Chart.AxisY, Wnd);
End Sub AxisFormatDialog;
This example is a regular report macro. After executing the macro the Axis Format dialog box is displayed for the Y axis of the specified chart.
See also: