IChart.UseAutoVisibleZoomScrollbars

Fore Syntax

UseAutoVisibleZoomScrollbars: Boolean;

Fore.NET Syntax

UseAutoVisibleZoomScrollbars: System.Boolean;

Description

The UseAutoVisibleZoomScrollbars property determines whether to display scrollbars for a scaleable chart.

Comments

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.

Fore Example

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.

Fore.NET Example

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:

IChart