Page 1 of 1

Fastcursor

Posted: Wed Feb 10, 2010 6:04 am
by 13052926
Hi

After experimenting and reading through the forums I discovered that - for my needs - setting .fastcursor = true works really well (the normal cursor really is way too slow in anything but the most basic of charts).

I am having a problem though. I am creating a WinForms application. The chart control is on one form (which is an MDI child). I then have another form that displays chart data. This form has it's TopMost property set to TRUE.

Now if the fastcursor moves 'behind' this form, the cursor line draws over it. In fact I have since tested this by dragging any other application window (notepad is as example) partially over my chart window and then moved the mouse and seen that the cursor draws onto the overlapping window.

Is this a known issue?

Re: Fastcursor

Posted: Wed Feb 10, 2010 10:32 am
by narcis
Hi rossmc,

No, it's the first time I hear about this. Could you please attach a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.

Re: Fastcursor

Posted: Wed Feb 10, 2010 10:54 am
by narcis
Hi rossmc,

After doing a little more investigation I found there were similar problems reported here, for example:

http://www.teechart.net/support/viewtop ... f=4&t=8801

So you could try setting BackBuffer to null or use manual double buffering. Please notice that UseBuffer property is deprecated now and you should use BufferStyle instead, for example:

Code: Select all

			tChart1.Graphics3D.BufferStyle = Steema.TeeChart.Drawing.BufferStyle.None;

Re: Fastcursor

Posted: Wed Feb 10, 2010 11:51 am
by 13052926
I am using v3 of .NET control which does not appear to have .BufferStyle property.

I tried setting .UseBuffer = false as well as setting .BackBuffer = nothing with no effect (problem still exists)

Re: Fastcursor

Posted: Wed Feb 10, 2010 11:55 am
by narcis
Hi rossmc,

Can you please send an example reproducing the issue then? Latest releases of v3 do have BufferStyle. Which build are you using?

Thanks in advance.

Re: Fastcursor

Posted: Wed Feb 10, 2010 1:14 pm
by 13052926
Ok, I first updated to the latest version, now on 3.5.3630.19311. I now have the .BufferStyle property. Doesn't matter which value I set it to the problem persists.

I uploaded steema.zip via the upload page (www.steema.net/upload)

Simply click on the new button on toolbar which will open a chart on a child form. Drag any other window partially over the chart. Now move the mouse on the chart face to get the cursor to move 'behind' the window in front. The cursor draws on this window.

Re: Fastcursor

Posted: Wed Feb 10, 2010 2:15 pm
by narcis
Hi rossmc,

Thanks for the example project. I could reproduce the issue here and this is due to the usage of FastCursor=True. Setting it to false solves the problem. This is a much generic issue with FastCursor=True, for example, code below also reproduces it.

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private void InitializeChart()
		{
			Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
			line1.FillSampleValues();

			Steema.TeeChart.Tools.CursorTool cursor1 = new Steema.TeeChart.Tools.CursorTool(tChart1.Chart);
			cursor1.FollowMouse = true;
			cursor1.FastCursor = true;
		}