[SOLVED] A question about TCursorTool and right axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Komar
Newbie
Newbie
Posts: 25
Joined: Thu Feb 10, 2005 5:00 am
Location: Savoie - France

[SOLVED] A question about TCursorTool and right axis

Post by Komar » Tue Oct 02, 2007 12:06 pm

Hi,

Hi have a TCursorTool on a graph with left and right axis, and the cursor tool follow my cursor when it move with the "change event" of TCursorTool.

Here is the definition of the change event function :

Code: Select all

void __fastcall TFMenuRec::reticuleChange(TCursorTool *Sender, int x, int y, const double XValue, const double YValue, TChartSeries *Series,      int ValueIndex)
I can get my Y value on the left axis with the YValue property, but I would like to get the Y value on the right Axis.

I there a way to do that ?

Thanks

Komar
Last edited by Komar on Tue Oct 02, 2007 2:29 pm, edited 1 time in total.

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

Post by Narcís » Tue Oct 02, 2007 1:25 pm

Hi Komar,

Yes, try using something like the line below using event's y argument.

Code: Select all

  RightAxisVal:=Chart1.Axes.Right.CalcPosPoint(y);
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

Komar
Newbie
Newbie
Posts: 25
Joined: Thu Feb 10, 2005 5:00 am
Location: Savoie - France

Post by Komar » Tue Oct 02, 2007 2:29 pm

Hi,

Thanks, it works with your instruction.

Best regards

Komar

Post Reply