Cursor Tool and zooming
Posted: Wed Mar 25, 2009 9:57 am
I have a CursorTool added onto the chart, and I have set the zoom box to have a solid fill colour and a dash border.
If you then try and zoom, the zoom box flickers and then eventually disappears when you let go of the mouse.
If you uncomment out the FastCursor line it works perfectly.
Any ideas?!
I have put the code below.
Regards,
Chris.
If you then try and zoom, the zoom box flickers and then eventually disappears when you let go of the mouse.
If you uncomment out the FastCursor line it works perfectly.
Any ideas?!
I have put the code below.
Code: Select all
InitializeComponent();
tChart1[0].FillSampleValues(9000);
tChart1[1].FillSampleValues(9000);
tChart1[2].FillSampleValues(9000);
tChart1[3].FillSampleValues(9000);
new CursorTool(tChart1.Chart)
{
Style = CursorToolStyles.Vertical,
FollowMouse = true,
//FastCursor = true,
Series = tChart1[0]
};
tChart1.Zoom.MinPixels = 3;
tChart1.Zoom.Brush.Color = Color.Green;
tChart1.Zoom.Pen.Style = System.Drawing.Drawing2D.DashStyle.Dash;
Chris.