SOLVED - TPointChart - Problem with "OnClickedPointer()

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ChZiegelt
Newbie
Newbie
Posts: 39
Joined: Thu Aug 09, 2007 12:00 am
Contact:

SOLVED - TPointChart - Problem with "OnClickedPointer()

Post by ChZiegelt » Tue May 13, 2008 11:15 am

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
Last edited by ChZiegelt on Tue May 13, 2008 4:26 pm, edited 1 time in total.

ChZiegelt
Newbie
Newbie
Posts: 39
Joined: Thu Aug 09, 2007 12:00 am
Contact:

Post by ChZiegelt » Tue May 13, 2008 11:21 am

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 ?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue May 13, 2008 12:08 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

ChZiegelt
Newbie
Newbie
Posts: 39
Joined: Thu Aug 09, 2007 12:00 am
Contact:

Post by ChZiegelt » Tue May 13, 2008 12:14 pm

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 !

jhhd
Newbie
Newbie
Posts: 17
Joined: Tue Mar 09, 2004 5:00 am

Post by jhhd » Thu Aug 07, 2008 4:18 pm

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.

ChZiegelt
Newbie
Newbie
Posts: 39
Joined: Thu Aug 09, 2007 12:00 am
Contact:

Post by ChZiegelt » Thu Aug 07, 2008 4:23 pm

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 ?

jhhd
Newbie
Newbie
Posts: 17
Joined: Tue Mar 09, 2004 5:00 am

Post by jhhd » Thu Aug 07, 2008 4:53 pm

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..

Post Reply