Hi,
I need a way to know the exact position of the begin and end of one
TChartAxis. In the case of the BottomAxis, It is not always possible to
get it from this sentence:
int xBegin = chart->BottomAxis->CalcPosValue(chart->BottomAxis->Minimum)
because there are cases in which that would be incorrect, like in the
case of a TBarSeries in the chart.
Is there any method I can use?
Thanks in advance.
TChartAxis location in pixels
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi beetle,
Yes, you can use Chart1.Axes.Bottom.IStartPos and Chart1.Axes.Bottom.IEndPos. Please notice that those properties only have valid values when the chart has been drawn so, for example, you'd better use them in the OnAfterDraw event or make a Chart1.Draw call before retrieving.
Yes, you can use Chart1.Axes.Bottom.IStartPos and Chart1.Axes.Bottom.IEndPos. Please notice that those properties only have valid values when the chart has been drawn so, for example, you'd better use them in the OnAfterDraw event or make a Chart1.Draw call before retrieving.
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 |