EndDragLine event sent multiple times for no reason
Posted: Tue Apr 10, 2007 7:36 pm
Hi,
I'm using TeeChart version 2.0.2546.16098. I have a chart where I create (programatically) 7 (seven) ColorLines. Each of them has AllowDrag = true. Six of them are vertical and one is horizontal. All of them use the EndDragLine event:
When the user drags one of the lines, the event handler is invoked seven times, i.e. for each line - even though only one line was dragged.
Are we doing something wrong or is this (a) a bug, or (b) desired behaviour and we have to live with it?
Best,
Michal Blazejczyk
I'm using TeeChart version 2.0.2546.16098. I have a chart where I create (programatically) 7 (seven) ColorLines. Each of them has AllowDrag = true. Six of them are vertical and one is horizontal. All of them use the EndDragLine event:
Code: Select all
Steema.TeeChart.Tools.ColorLine line = new Steema.TeeChart.Tools.ColorLine();
line.Active = true;
line.AllowDrag = true;
line.Axis = ( isHorizontalLine ? chart.Axes.Left : chart.Axes.Bottom );
line.Draw3D = false;
line.DrawBehind = false;
line.Pen.Color = someColor;
line.Value = someValue;
line.EndDragLine
+= new Steema.TeeChart.Tools.ColorLineToolOnDragEventHandler( OnLineMoved );
chart.Tools.Add( line );
Are we doing something wrong or is this (a) a bug, or (b) desired behaviour and we have to live with it?
Best,
Michal Blazejczyk