Hello Support Team,
I added in chart the DragPoint Tools. I want to process event of the end of drag. How to make it ?
Best regards, Rustam.
Drag Point Tools ?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Rustam,
An specific event for that doesn't exist but you can easily achieve that by using TeeChart's OnMouseUp event and the series Clicked method as shown here:
An specific event for that doesn't exist but you can easily achieve that by using TeeChart's OnMouseUp event and the series Clicked method as shown here:
Code: Select all
Private Sub TChart1_OnMouseUp(ByVal Button As TeeChart.EMouseButton, ByVal Shift As TeeChart.EShiftState, ByVal X As Long, ByVal Y As Long)
If (TChart1.Series(0).Clicked(X, Y) <> -1) Then
MsgBox "Point Dragged!"
End If
End Sub
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Kabal,
It works fine here, it only fires after a series point has been clicked and the mouse button is released. Are you sure that you didn't implement the code in the OnMouseMove event instead of OnMouseUp?
It works fine here, it only fires after a series point has been clicked and the mouse button is released. Are you sure that you didn't implement the code in the OnMouseMove event instead of OnMouseUp?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
It's not working when You have started drag from "clicked" point in the Series but have stopped drag on free region. Then Clicked return -1 however the point have been moved.narcis wrote:Hi Kabal,
It works fine here, it only fires after a series point has been clicked and the mouse button is released. Are you sure that you didn't implement the code in the OnMouseMove event instead of OnMouseUp?
Best regards, Rustam.
Hi Rustam,
yes, in that case, if you want to control this you will have to use the OnMouseDown, OnMouseMove and OnMouseUp events checking on these ones which point was clicked when the mouse is released.
yes, in that case, if you want to control this you will have to use the OnMouseDown, OnMouseMove and OnMouseUp events checking on these ones which point was clicked when the mouse is released.
Pep Jorge
http://support.steema.com
http://support.steema.com