How Could I get the position (relativing to Form or DeskTop coordinate system ) of some point(x,y) of series?
For Example,I want to get the postion of Point(100,100) of Series1,that relatives to Form or DeskTop coordinate system.
Thansks!
How to get the position of some point(x,y) of series?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi wwp3321,
TeeChart provides methods for calculating this positions relative to the chart but you can get form relative positions adding chart position, for example:
TeeChart provides methods for calculating this positions relative to the chart but you can get form relative positions adding chart position, for example:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
var X, Y: Integer;
begin
X:=Series1.CalcXPosValue(100);
Y:=Series1.CalcYPosValue(100);
X:=X+Chart1.Left;
Y:=Y+Chart1.Top;
Chart1.Title.Text[0]:=IntToStr(X) + ', ' + IntToStr(Y);
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 |