Page 1 of 1

SOLVED - TPointChart - Problem with "OnClickedPointer()

Posted: Tue May 13, 2008 11:15 am
by 10546441
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

Posted: Tue May 13, 2008 11:21 am
by 10546441
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 ?

Posted: Tue May 13, 2008 12:08 pm
by narcis
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.

Posted: Tue May 13, 2008 12:14 pm
by 10546441
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 !

Posted: Thu Aug 07, 2008 4:18 pm
by 9231211
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.

Posted: Thu Aug 07, 2008 4:23 pm
by 10546441
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

Code: Select all

MyButtonClicked(Sender: TObject)
begin
  //something
end;
You can call this method from within your code:

if "xyz" then MyButtonClicked(nil) or (Form1).

I hope this helped ?

Posted: Thu Aug 07, 2008 4:53 pm
by 9231211
I don't mean a way of calling the code in my specific event handler. If I wanted TChart's inner-workings code to execute or something..