UseAutoVisibleZoomScrollbars: Boolean;
UseAutoVisibleZoomScrollbars: System.Boolean;
The UseAutoVisibleZoomScrollbars property determines whether to display scrollbars for the chart to be zoomed.
Zooming the chart displays scrollbars. If the chart is active, the scrollbars are always displayed on setting the False property value. Setting the True value displays the scrollbars only on hovering the mouse on the chart area where the scrollabars are supposed to be.
To execute this example, create a form with a button named Button1 on the form, the ChartBox component and the UiChart component that is a data source.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Chart: IChart;
Begin
Chart:= UiChart1.Chart;
Chart.InteractiveMode := ChartInteractiveMode.Zoom;
Chart.ZoomMode := ChartZoomMode.AxisXY;
Chart.UseAutoVisibleZoomScrollbars:= True;
End Sub Button1OnClick;
Clicking Button1 displays the scrollbars on the chart.
To execute this example, create a form with a button named Button1 on the form, the ChartBoxNet component and the UiChartNet component that is a data source.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Chart;
...
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Chart: IChart;
Begin
Chart:= UiChartNet1.ChartUi.Chart;
Chart.InteractiveMode := ChartInteractiveMode.cimZoom;
Chart.ZoomMode := ChartZoomMode.czmAxisXY;
Chart.UseAutoVisibleZoomScrollbars:= True;
End Sub;
Clicking Button1 displays the scrollbars on the chart.
See also: