Hello,
In TChartTitle.DrawTitle inside Chart.pas the declaration ShapeBounds:= ParentChart.ChartRect; does not return the rectangle formed by Left and Bottom axes but left point is always 0. How can I change that so that the ShapeBounds has left equal to LeftAxes.left and right equal to BottomAxes.Right?
Regards
About TChartTitle.DrawTitle
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: About TChartTitle.DrawTitle
Hi johnnix,
I'm sorry but we can not support source code modifications. If you are looking into this for fixing a bug existing with the binary release of TeeChart please let us know and we will investigate it.
Thanks in advance.
I'm sorry but we can not support source code modifications. If you are looking into this for fixing a bug existing with the binary release of TeeChart please let us know and we will investigate it.
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 |
Instructions - How to post in this forum |
Re: About TChartTitle.DrawTitle
Hello Narcis,
Yes, this is a bug which I reported sometime ago. Back then I did not have the sources and since it is not fixed I wanted to investigate it myself. Anyway I was just wondering why the ChartRect property does not return the rectangle formed by Left and Bottom axis.
Regards
Yes, this is a bug which I reported sometime ago. Back then I did not have the sources and since it is not fixed I wanted to investigate it myself. Anyway I was just wondering why the ChartRect property does not return the rectangle formed by Left and Bottom axis.
Regards
Re: About TChartTitle.DrawTitle
Hi johnnix,
This is probably because at this moment the axes still haven't been calculated.
Could you please tell us what is the problem you reported time ago?
This is probably because at this moment the axes still haven't been calculated.
Could you please tell us what is the problem you reported time ago?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: About TChartTitle.DrawTitle
Hello,
The issue with the chart Title is that when the alignment is left it is drawn from the left point of the component rectangle and when the alignment is set to right is looks like it is drawn from the bottom axis right. What I suggested was that the chart title should be drawn relative to the rectangle formed be left and bottom axis.
Regards
The issue with the chart Title is that when the alignment is left it is drawn from the left point of the component rectangle and when the alignment is set to right is looks like it is drawn from the bottom axis right. What I suggested was that the chart title should be drawn relative to the rectangle formed be left and bottom axis.
Regards
Re: About TChartTitle.DrawTitle
Hi johnnix,
Then you could try changing the moment where the title is drawn and make it to be drawn after the axes.
Take a look at the DrawTitlesAndLegend call in TeEngine.pas.
Then you could try changing the moment where the title is drawn and make it to be drawn after the axes.
Take a look at the DrawTitlesAndLegend call in TeEngine.pas.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: About TChartTitle.DrawTitle
Hello,
Thank you very much for the tip although I could not get it work I tried placing the following code inside the OnAfterDraw event of the chart and the result was a double drawn Title where the second title is placed horizontally where I need it to be but the vertical Position is wrong. Anyway would you consider adding an option to draw the title using the left and bottom axis bounds?
Regards
Thank you very much for the tip although I could not get it work I tried placing the following code inside the OnAfterDraw event of the chart and the result was a double drawn Title where the second title is placed horizontally where I need it to be but the vertical Position is wrong. Anyway would you consider adding an option to draw the title using the left and bottom axis bounds?
Code: Select all
(sender as TChart).Title.DrawTitle;
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: About TChartTitle.DrawTitle
Hi johnnix,
You could try calling Chart1.Draw in OnCreate or your unit's constructor to see if once the chart is plotted such properties have valid values.
You could try calling Chart1.Draw in OnCreate or your unit's constructor to see if once the chart is plotted such properties have valid values.
Best Regards,
Narcís Calvet / 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 |