Page 1 of 1

[SOLVED] A question about TCursorTool and right axis

Posted: Tue Oct 02, 2007 12:06 pm
by 9235956
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

Posted: Tue Oct 02, 2007 1:25 pm
by narcis
Hi Komar,

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

Code: Select all

  RightAxisVal:=Chart1.Axes.Right.CalcPosPoint(y);

Posted: Tue Oct 02, 2007 2:29 pm
by 9235956
Hi,

Thanks, it works with your instruction.

Best regards

Komar