Hi,
How can I know the axis title position (in pixel units) ?
I tried to read TChartAxis.ShapeBounds but it returns (0,0,0,0).
I also want to know if it is possible to move the axis title on the graph with the mouse ?
Thanks in advance
Franck
Axis title position
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Franck,
Where are you retrieving this values? You should do that at a stage where the chart has been drawn (eg.: OnAfterDraw event) or call Chart1.Draw() before retrieving the values.How can I know the axis title position (in pixel units) ?
I tried to read TChartAxis.ShapeBounds but it returns (0,0,0,0).
I'm afraid this is not possible at the moment. TSelectorTool doesn't support axes title dragging. I'll add your request to our wish-list to be considered for inclusion in future releases.I also want to know if it is possible to move the axis title on the graph with the mouse ?
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 |
It is simple to reproduce this pb. Put a button on a graph who is displaying a trace, and on the OnClick event of the button put this code :
The message will be: 0 0 0 0
Any ideas ?
Franck
Code: Select all
ShowMessage(inttostr(Chart1.BottomAxis.Title.ShapeBounds.Left) + ' ' +
inttostr(Chart1.BottomAxis.Title.ShapeBounds.Top) + ' ' +
inttostr(Chart1.BottomAxis.Title.ShapeBounds.Bottom) + ' ' +
inttostr(Chart1.BottomAxis.Title.ShapeBounds.Right));
Any ideas ?
Franck
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Franck,
Thanks for the information. I've been able to reproduce the issue here using TeeChart Pro v7 VCL. However, it works fine using TeeChart Pro v8 VCL.
Thanks for the information. I've been able to reproduce the issue here using TeeChart Pro v7 VCL. However, it works fine using TeeChart Pro v8 VCL.
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 |