I recently upgraded from my ActiveX TChart v4 to V5, as part of the .NET package. Developing in VB6.
With the V4 chart, I had a double-click event that showed the editor. Followed by a StopMouse. Worked fine with V4. With V5, the stopmouse function is not "stopping the mouse".
Example:
Private Sub TChart_OnDblClick(Index As Integer)
Me.TChart(Index).ShowEditor (-1)
Me.TChart(Index).StopMouse
End Sub
Is there a different way that I have to do this with the V5 control? Or is it broke?
Jeff
ShowEditor and StopMouse Problem
Hu Jeff,
you can solve this by using the following code :
you can solve this by using the following code :
Code: Select all
Private Sub TChart_DblClick()
TChart.Zoom.Enable = False
MsgBox ("Double-Click")
TChart1.StopMouse
enDblClick = True
end Sub
Private Sub TChart1_OnMouseMove(ByVal Shift As TeeChart.EShiftState, ByVal X As Long, ByVal Y As Long)
If enDblClick = True then
TChart1.Zoom.Enable = True
TChart1.Environment.InternalRepaint
enDblClick = False
end if
end Sub
Pep Jorge
http://support.steema.com
http://support.steema.com