Exact location on the application of the left axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
jz8
Newbie
Newbie
Posts: 13
Joined: Thu Feb 10, 2005 5:00 am

Exact location on the application of the left axis

Post by jz8 » Fri Aug 01, 2008 2:54 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Aug 01, 2008 3:00 pm

Hi jz8,

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;
Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

jz8
Newbie
Newbie
Posts: 13
Joined: Thu Feb 10, 2005 5:00 am

Post by jz8 » Fri Aug 01, 2008 3:07 pm

I see -- it is a runtime only property. Thanks

Post Reply