|
|
DQChart Control > Events > CrossHair |
CrossHair
Applies to: |
DQChart Active X Control |
Description: |
Fires when the crosshair is activated pausing the continuous stream visually. Your device continues to acquire data when the crosshair is activated but visually pauses the chart. This event passes back the location of the crosshair as offset from the leftmost point in the chart in pixels (i.e., the leftmost point on the chart would output 0). The crosshair can only be activated when the Lock property is set to True. |
Example: |
Private Sub DataqSdk1_ NewData(ByVal Count As Integer) DQChart1. Chart (DataqSdk1. GetData) End Sub
Private Sub Form_Load() DQChart1. Lock = True End Sub
Private Sub Start_Click() DataqSdk1. EventPoint = 20 DataqSdk1. Start End Sub
Private Sub Stop_Click() DataqSdk1. Stop End Sub Private Sub DQChart1_CrossHair(ByVal Offset As Long) 'this gives the location of the crosshair - the location is determined in terms of the Xmax of the chart so the leftmost point on the chart would be 0 (i.e., if you place the crosshair on the leftmost point of the chart the returned value would be 0) Label1.Caption = Offset End Sub |