My Event is fired every time even if the cursor only moved above the pointer.
I need the event ONLY if someone CLICKS on the Point, nothing else.
Any possibility to manage that ?
Thanks in advance !
Christian Ziegelt
SOLVED - TPointChart - Problem with "OnClickedPointer()
SOLVED - TPointChart - Problem with "OnClickedPointer()
Last edited by ChZiegelt on Tue May 13, 2008 4:26 pm, edited 1 time in total.
A little Update -
Just now, since 2 hours of trying it changed the behavior somehow ?
For the moment it really only fires the event when clicking on the point. But I have no clues why it does so - or why it did it the other way before.
Does anyone had similar problems ? How do I avoid this behavior in the future ?
Just now, since 2 hours of trying it changed the behavior somehow ?
For the moment it really only fires the event when clicking on the point. But I have no clues why it does so - or why it did it the other way before.
Does anyone had similar problems ? How do I avoid this behavior in the future ?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Christian,
I'm not able to reproduce the issue here using TeeChart Pro v8.02 VCL, which is the latest release available at the client area. Are you using the latest version available?
Thanks in advance.
I'm not able to reproduce the issue here using TeeChart Pro v8.02 VCL, which is the latest release available at the client area. Are you using the latest version available?
Thanks in advance.
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 |
I did not check whether its the newest version, I will do that next.
Finally I think it is a home made problem in some of the logic parts of my application. If I find out what exactly made it happen, I will report back.
I am using a a PointSeries to draw points on a plain, and try to select one point by clicking and showing a CursorTool at the place.
Maybe there went something wrong in the select procedure.
Thanks for the help anyway !
I realy appreciate the fast and uncomplicated way of your support at Steema !! Thumps up !
Finally I think it is a home made problem in some of the logic parts of my application. If I find out what exactly made it happen, I will report back.
I am using a a PointSeries to draw points on a plain, and try to select one point by clicking and showing a CursorTool at the place.
Maybe there went something wrong in the select procedure.
Thanks for the help anyway !
I realy appreciate the fast and uncomplicated way of your support at Steema !! Thumps up !
I too have the same issue. It appears to be caused by setting the Cursor property to something, so that when you hover it should display a different cursor, but instead hovering actually fires the OnClickPointer event. Any ideas why this might be?
Also, is there any way (I doubt it, but there's no harm in asking) to programmatically cause an event to be fired? Say I have the chart's OnMouseDown and OnMouseUp set to some events, and then I decide I want to have OnClickPointer for a series which happens to pop up a dialog or message box, the OnMouseUp never ends up being called which causes problems with it drawing zoom windows thinking the mouse is still down.
Also, is there any way (I doubt it, but there's no harm in asking) to programmatically cause an event to be fired? Say I have the chart's OnMouseDown and OnMouseUp set to some events, and then I decide I want to have OnClickPointer for a series which happens to pop up a dialog or message box, the OnMouseUp never ends up being called which causes problems with it drawing zoom windows thinking the mouse is still down.
Sure you can "fire" events - mybe not in the way the word suggests, but you can call the event handler manuyll / programmatically.
If you have a function/procedure assigned to an event - like
You can call this method from within your code:
if "xyz" then MyButtonClicked(nil) or (Form1).
I hope this helped ?
If you have a function/procedure assigned to an event - like
Code: Select all
MyButtonClicked(Sender: TObject)
begin
//something
end;
if "xyz" then MyButtonClicked(nil) or (Form1).
I hope this helped ?