UseAutoVisibleZoomScrollbars: Boolean;
UseAutoVisibleZoomScrollbars: System.Boolean;
The UseAutoVisibleZoomScrollbars property determines whether to display scrollbars for a scaleable chart.
When the chart is scaled, scrollbars are displayed. If the chart is active, the scrollbars are always displayed on setting the False property value. If the True is set, the scrollbars are displayed only on mouseover on the chart area where the scrollbars are supposed to be.
To execute the 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 the Button1 button displays the scrollbars on the chart.
To execute the 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 the Button1 button displays the scrollbars on the chart.
See also: