Use this method to programmatically enable or disable the crosshairs mode. This method is equivalent to selecting the Crosshairs button in the Toolbar.
The parameter required for this method is described below.
Parameter |
Description |
ButtonSelected | Boolean value indicating the crosshairs mode. TRUE indicates crosshairs is enabled, and the Crosshairs button in the Toolbar is displayed as selected; FALSE indicates crosshairs in disabled, and the Crosshairs button in the Toolbar is displayed as unselected. |
Example
If
XYChartCtrl.Toolbar.Buttons.CrosshairsPressed Then
XYChartCtrl.SetCrosshairs False 'Disable
the Crosshairs; a Refresh call is not required
Else
XYChartCtrl.SetCrosshairs True 'Enable
the Crosshairs; a Refresh call is not required
End If
See
Also