Hello,
Is there a way to detect when the user clicks on an Axis?
I am trying to modify the code from
http://news.infragistics.com/forums/p/10441/46970.aspx#46970 because I have multiple Y axis in multiple layers in a composite chart, and I want the user to be able to move only 1 Y axis at a time.
Is there a way to return the location of the Axis or a hittest that will return a boolean if the current click was over the axis?
Thanks in advance
Talal
I wrote the following code to drag the "Nearest" Y axis, but I still haven't found a way to detect an actual click or hover ON or above the axis itself (I would like to be able to change mouse cursor when hovering over an axis before moving it, for example)
---------------------------------------------------------
MouseDelta = 500000
NearestAxis =
curMouseDelta = Math.Abs(
NearestAxis = item
MouseDelta = curMouseDelta
System.Windows.Forms.Cursor.Current = Cursors.SizeWE
newExtend = 0
newExtend = 500
System.Windows.Forms.Cursor.Current = Cursors.[Default]
I added functionality for detecting click on the axis:
public
{
}
areaBounds.Height += range / 2;
chartBounds.Height += range / 2;
newExtend = 0;
newExtend = 500;