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
Clicked method of Series always returns -1
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Clicked method of Series always returns -1
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?
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 |
Re: Clicked method of Series always returns -1
Hi Christopher,
I tried your code and nothing displays, just an empty TChart.
Michael
I tried your code and nothing displays, just an empty TChart.
Michael
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Clicked method of Series always returns -1
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?
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 |
Re: Clicked method of Series always returns -1
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
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
Re: Clicked method of Series always returns -1
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
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
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Clicked method of Series always returns -1
Hello Michael,
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.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.
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 |
Re: Clicked method of Series always returns -1
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
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