Page 1 of 1

Exact location on the application of the left axis

Posted: Fri Aug 01, 2008 2:54 pm
by 9235955
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?

Posted: Fri Aug 01, 2008 3:00 pm
by narcis
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!

Posted: Fri Aug 01, 2008 3:07 pm
by 9235955
I see -- it is a runtime only property. Thanks