Page 1 of 1

OnClick not called!

Posted: Thu Sep 15, 2011 1:24 pm
by 16558319
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

Re: OnClick not called!

Posted: Thu Sep 15, 2011 1:56 pm
by narcis
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.

Re: OnClick not called!

Posted: Thu Sep 15, 2011 3:55 pm
by 16558319
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

Re: OnClick not called!

Posted: Thu Sep 15, 2011 8:38 pm
by 16558319
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

Re: OnClick not called!

Posted: Fri Sep 16, 2011 7:54 am
by narcis
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.

Re: OnClick not called!

Posted: Fri Sep 16, 2011 3:44 pm
by 16558319
My code have not changed. The only deference is that I've installed Teechart 2011 for builder 2010.

Re: OnClick not called!

Posted: Mon Sep 19, 2011 7:24 am
by narcis
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.