DQChart Control > Properties > Lock

Previous | Next

Lock

Applies to:

DQChart Active X Control

Description:

If this property is FALSE, you can use the mouse operation to change the format of the chart (this is the default). There are 3 methods to magnify/minimize waveforms with mouse control:

1. Double-clicking the left button will contract all of the waveforms in the chart to half of their original size in the amplitude direction, increasing the scale two times (doubles Ymax and Ymin).

2. Double-clicking the right button will expand all of the waveforms in the chart to two times their original size in the amplitude direction, decreasing the scale in half (cuts Ymax and Ymin in half).

3. Clicking-and-dragging will change the offset of all of the waveforms in the chart.

Using any of the above methods will result in the Event ChartChanged.

If this property is TRUE, clicking the left button will activate a crosshair and the distance between the point that you click on and the left edge of the chart will be sent to the program via the CrossHair Event.

This property can be set by use of a dropdown box in the properties window. The default setting is False.

Syntax:

DQChart1.Lock=variable (where variable is either true or false)

Variable:

Boolean

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)

Label1.Caption = Offset

End Sub

 

Reference Materials | Top