To avoid this bug, is it possible to disable the legend click event?
Or is there another way?
Exception
Code: Select all
StackTrace:
at Steema.TeeChart.Legend.DoMouseDown(Int32 x, Int32 y)
at Steema.TeeChart.Chart.DoMouseDown(Boolean isDoubleClick, MouseEventArgs e, Keys shift)
at Steema.TeeChart.TChart.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
Code: Select all
double[] Y = { 0.5067, 0.5126, 0.5053, 0.5044, 0.5108, 0.505, 0.5056, 0.5028, 0.5007, 0.5033, 0.5036, 0.5044, 0.507, 0.5045, 0.504, 0.5057, 0.4969, 0.5057, 0.5085, 0.5024, 0.5, 0.5058, 0.5111, 0.5094, 0.466, 0.503, 0.5012, 0.5161, 0.5096, 0.5076, 0.5054, 0.5023, 0.5045, 0.4987, 0.5031, 0.4995, 0.4996, 0.5065, 0.5038, 0.4939, 0.5098, 0.5011, 0.5112, 0.5095, 0.5079, 0.504, 0.4974, 0.5021, 0.4992, };
double[] X = new double[Y.Length];
double[] Z = new double[Y.Length];
for (int i = 0; i < X.Length; i++)
{
X[i] = (i % 7) - 3;
}
for (int i = 0; i < Z.Length; i++)
{
Z[i] = (i / 7) - 3;
}
contour1.Add(X, Y, Z);