OnClick not called!

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Bill
Newbie
Newbie
Posts: 21
Joined: Mon Jan 03, 2011 12:00 am

OnClick not called!

Post by Bill » Thu Sep 15, 2011 1:24 pm

Hi,

I have a component derived from TChartShape called TMyChartShape. In it there are Events such as OnMouseEnter, OnMouseExit, OnClicked, OnDblClicked, OnMouseDown... They all worked as expected in TChart V 8. But with TChart 2011 for BCB 2010, the OnClicked and OnDblClicked are not fired for some reason from TChart, so the TMyChartShape component is not receiving the event! The other events are working as before. Any changes to the OnClick and OnDblClick events?

Thanks

-Bill

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

Re: OnClick not called!

Post by Narcís » Thu Sep 15, 2011 1:56 pm

Hi Bill,

This works fine for me here using TeeChart Pro 2011.03.30407 VCL with C++ Builder 2011 and attached project. Which TeeChart version are you using? Does the attached project work fine for you?

Thanks in advance.
Attachments
ShapeClick.zip
(6.32 KiB) Downloaded 346 times
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

Bill
Newbie
Newbie
Posts: 21
Joined: Mon Jan 03, 2011 12:00 am

Re: OnClick not called!

Post by Bill » Thu Sep 15, 2011 3:55 pm

Thanks. The attachment you sent works find.

I'm using TeeChart Pro 2011.03.30407 VCL with C++ Builder 2010. My TChartShape is in a package and installed as a component. I'll see if I create an example.

-Bill

Bill
Newbie
Newbie
Posts: 21
Joined: Mon Jan 03, 2011 12:00 am

Re: OnClick not called!

Post by Bill » Thu Sep 15, 2011 8:38 pm

Is there a way to compile and link to a debugging version of TeeChart Pro, so I can trace into the OnClick event? I've noticed the changes between TChart version 8 and TChart 2011, and my code has been working find till I installed version 2011.

Thanks

-Bill

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

Re: OnClick not called!

Post by Narcís » Fri Sep 16, 2011 7:54 am

Hi Bill,
I'm using TeeChart Pro 2011.03.30407 VCL with C++ Builder 2010. My TChartShape is in a package and installed as a component. I'll see if I create an example.
In that case the issue may probably be in your custom TChartShape. You could check that there's no other event or code masking OnClick event.
Is there a way to compile and link to a debugging version of TeeChart Pro, so I can trace into the OnClick event? I've noticed the changes between TChart version 8 and TChart 2011, and my code has been working find till I installed version 2011.
Yes, it is possible for source code customers and Delphi referencing the path to the sources in Delphi. With C++ Builder it may be more complicated, TeeChart is fully written in Delphi. If you can reference and browse Delphi units from C++ Builder there should be no problem then.
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

Bill
Newbie
Newbie
Posts: 21
Joined: Mon Jan 03, 2011 12:00 am

Re: OnClick not called!

Post by Bill » Fri Sep 16, 2011 3:44 pm

My code have not changed. The only deference is that I've installed Teechart 2011 for builder 2010.

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

Re: OnClick not called!

Post by Narcís » Mon Sep 19, 2011 7:24 am

Hi Bill,

We would need a simple example project we can run "as-is" to reproduce the problem here so that we can compare behavior between the two versions.

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

Post Reply