Clicked method of Series always returns -1

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Michael
Newbie
Newbie
Posts: 14
Joined: Tue Dec 13, 2016 12:00 am

Re: Clicked method of Series always returns -1

Post by Michael » Tue Nov 28, 2017 4:14 pm

Hi Christopher,

I just thought of something after I posted the previous message/: I resized the window making it taller and now the horizontal axes look the same (interval is 2, not 5). The question is why does the new version need a taller window for that?

Thank you,
Michael

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Clicked method of Series always returns -1

Post by Christopher » Tue Nov 28, 2017 4:50 pm

Hello Michael,

I don't have access to our old VCS at the moment to download your exact version, although I doubt there is a difference in behaviour between it and the 2013 I used in my test. Maybe you could help me see if this is true by posting a screenshot of the result of using the code I posted in my last message in the meantime?
Best Regards,
Christopher Ireland / 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

Michael
Newbie
Newbie
Posts: 14
Joined: Tue Dec 13, 2016 12:00 am

Re: Clicked method of Series always returns -1

Post by Michael » Tue Nov 28, 2017 5:28 pm

Hi Christopher,

I tried your code and nothing displays, just an empty TChart.

Michael

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Clicked method of Series always returns -1

Post by Christopher » Tue Nov 28, 2017 6:09 pm

Hello Michael,

How about downloading this test project:
http://www.teechart.net/files/public/su ... ation1.zip

changing the TeeChart.dll reference and trying to run it?
Best Regards,
Christopher Ireland / 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

Michael
Newbie
Newbie
Posts: 14
Joined: Tue Dec 13, 2016 12:00 am

Re: Clicked method of Series always returns -1

Post by Michael » Tue Nov 28, 2017 7:37 pm

Hi Christopher,

Tried your project and then managed to change mine to make it work. I changed the min & max values of the rnd function to see how it behaves with different values and every time the horizontal axes were the same for both versions of the dll. I guess I would have to live with the difference I have in my program since it definitely behaves differently and I have to resize the window a bit should I need more horizontal axes.

Thank you,
Michael

Michael
Newbie
Newbie
Posts: 14
Joined: Tue Dec 13, 2016 12:00 am

Re: Clicked method of Series always returns -1

Post by Michael » Tue Nov 28, 2017 9:11 pm

Hi Christopher,

One more thing: in your example we have the type Bar whereas in my program it's a CChartBar. Not sure it matters or not.

Michael

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Clicked method of Series always returns -1

Post by Christopher » Wed Nov 29, 2017 8:24 am

Hello Michael,
Michael wrote: One more thing: in your example we have the type Bar whereas in my program it's a CChartBar. Not sure it matters or not.
Yes, I think it matters a lot. CChartBar is not a class which exists in the TeeChart.dll produced by Steema Software. I imagine that this class is a derivative of our Bar class which overrides some of its functionality and that was created by those who created the program you are working on.
Best Regards,
Christopher Ireland / 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

Michael
Newbie
Newbie
Posts: 14
Joined: Tue Dec 13, 2016 12:00 am

Re: Clicked method of Series always returns -1

Post by Michael » Wed Nov 29, 2017 4:13 pm

Hi Christopher,

You're right, CChartBar is one of our classes. I made a small change, changing the Automatic property of the X Axis to true (it was set to false) and now both old and new charts look the same, including the start and end times on the X Axis. Not sure why it was set to false; maybe the old version was working a bit different. In any case, with the fix that you sent me and the changes I made it now looks the same as before.

Thank you,
Michael

Post Reply