Custom axes and the metrics
Posted: Fri Nov 02, 2007 11:43 am
Hi,
I've got a chart that has a bottom (time) axis and a couple of vertical custom axes. I need your help to be able to achieve the following:
1) Given the mouse cursor position, determine which vertical axis the mouse is over at the moment so that I can calculate the corresponding coordinates. Normally, I would use something like Chart.LeftAxis.CalcPosPoint() but now I can't since I don't know which axis is under the mouse.
2) Determine bottom-most and top-most pixels of every custom axis. For a custom painting I need to know the boundary of each custom axis. Normally, I would use Chart.ChartRect.Bottom and Chart.ChartRect.Top if there was just only one left axis, but now it isn't.
Thanks in advance!
I've got a chart that has a bottom (time) axis and a couple of vertical custom axes. I need your help to be able to achieve the following:
1) Given the mouse cursor position, determine which vertical axis the mouse is over at the moment so that I can calculate the corresponding coordinates. Normally, I would use something like Chart.LeftAxis.CalcPosPoint() but now I can't since I don't know which axis is under the mouse.
2) Determine bottom-most and top-most pixels of every custom axis. For a custom painting I need to know the boundary of each custom axis. Normally, I would use Chart.ChartRect.Bottom and Chart.ChartRect.Top if there was just only one left axis, but now it isn't.
Thanks in advance!