Exact location on the application of the left axis
Exact location on the application of the left axis
I am drawing an object on my application that needs to be lined up exactly with the graph inside a Chart. For example I might like it to be exactly on the left axis. The left axis can move with different length of axis labels. Therefore I need a property that shows me exactly where the axis is either on the application or the chart. Is such possible?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi jz8,
Yes, and you should do so in the OnAfterDraw event, for example:
Hope this helps!
Yes, and you should do so in the OnAfterDraw event, for example:
Code: Select all
procedure TForm1.Chart1AfterDraw(Sender: TObject);
begin
Caption:=IntToStr(Chart1.Axes.Left.PosAxis);
end;
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 |