Page 1 of 1

ShowEditor and StopMouse Problem

Posted: Tue Jun 15, 2004 4:28 pm
by 6933642
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

Posted: Wed Jun 16, 2004 10:27 am
by Pep
Hu Jeff,

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