ShowEditor and StopMouse Problem

TeeChart for ActiveX, COM and ASP
Post Reply
Jeff
Newbie
Newbie
Posts: 1
Joined: Fri May 28, 2004 4:00 am
Location: Springfield IL

ShowEditor and StopMouse Problem

Post by Jeff » Tue Jun 15, 2004 4:28 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Jun 16, 2004 10:27 am

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

Post Reply