1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| Private Sub myChart_MouseDown(ByVal Button As Long, ByVal Shift As Long, _
ByVal x As Long, ByVal y As Long)
Dim c As Coords
c = getCoordsFromPixels(x, y)
AddNewCoords c
End Sub
Private Sub myChart_MouseMove(ByVal Button As Long, ByVal Shift As Long, _
ByVal x As Long, ByVal y As Long)
Dim c As Coords
c = getCoordsFromPixels(x, y)
SetActualCoords c
End Sub
Private Sub myChart_Resize()
InitConversionFactors
End Sub
'Each time a part of the graph is resized, we have to reset factor A and B
Private Sub myChart_MouseUp(ByVal Button As Long, ByVal Shift As Long, ByVal x As Long, ByVal y As Long)
InitConversionFactors
End Sub |
Partager