Fastcursor

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

Fastcursor

Post by rossmc » Wed Feb 10, 2010 6:04 am

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Fastcursor

Post by Narcís » Wed Feb 10, 2010 10:32 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Fastcursor

Post by Narcís » Wed Feb 10, 2010 10:54 am

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

Re: Fastcursor

Post by rossmc » Wed Feb 10, 2010 11:51 am

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)

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Fastcursor

Post by Narcís » Wed Feb 10, 2010 11:55 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

Re: Fastcursor

Post by rossmc » Wed Feb 10, 2010 1:14 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Fastcursor

Post by Narcís » Wed Feb 10, 2010 2:15 pm

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;
		}
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply