CursorTool - doubled cursor when changing the Active propert

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Joao Silva
Newbie
Newbie
Posts: 2
Joined: Tue Feb 14, 2006 12:00 am
Contact:

CursorTool - doubled cursor when changing the Active propert

Post by Joao Silva » Fri Jul 06, 2007 8:56 am

The problem I have happens when using a CursorTool with the FastCursor property set to true (it doesn't happen when it's false).

While using the cursor I change its Active property to false. The cursor disappears from the chart - this is OK.

Later on, when setting Active back to true, the cursor appears again, but a second cursor also appears at the location where I firstly changed Active to false.

The second cursor doesn't respond to mouse actions. It remains all the time at the same position.

I'm using the latest version of TeeChart for .NET (15-Jun-2007).

Any idea of what could be wrong?
Joao Silva
BIATEL S.A.
http://www.cellbox.pl/

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Fri Jul 06, 2007 10:40 am

Hi Joao

Thanks for letting us know, I could reproduce the issue here and this seems to be a bug. I've added it (TF02012326) to our defect list to be fixed for future releases.

Please be aware at this forum for new release announcements and what's fixed/implemented on them.
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

glikoz
Newbie
Newbie
Posts: 50
Joined: Fri Oct 07, 2005 4:00 am

Post by glikoz » Tue Jul 10, 2007 4:02 pm

It happens when CrossHair was active and fastcursor property was true
ALT-TAB (go another program) and ALT_TAB (Turn back TChart component) also..

1- your mouse Leave the chart..
2- when you came back again the problem happens..

Loz
Newbie
Newbie
Posts: 18
Joined: Wed May 30, 2007 12:00 am

Post by Loz » Tue Dec 18, 2007 1:35 pm

I'm having this problem with both the December release and the one before that. I thought it was our custom cursor code so I reverted to using the standard cursor tool in FastCursor mode.

Is it related to the new manual double buffering updates?

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

Post by Narcís » Tue Dec 18, 2007 1:53 pm

Hi Loz,
Is it related to the new manual double buffering updates?
It's most unlikely as the original issue hasn't been fixed yet.
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

Loz
Newbie
Newbie
Posts: 18
Joined: Wed May 30, 2007 12:00 am

Post by Loz » Tue Dec 18, 2007 2:07 pm

Sure - perhaps it's similar though. It started happening in the last month or two.

If FastCursor is off, everything works fine however if it's on then the first time I enter the chart or if I select a menu item from a popup, the first place the cursor is drawn leaves a ghost.

I'll keep experimenting to see if I can narrow in on why but I'm pretty sure it coincided with the first release containing the double buffering. I'll also set up a tiny test project to make sure it's also replicated there.

Loz
Newbie
Newbie
Posts: 18
Joined: Wed May 30, 2007 12:00 am

Post by Loz » Tue Dec 18, 2007 2:39 pm

I've just loaded up a sample project. Very crude but it shows the issue.

If you right click and pan, it'll leave a ghost cursor.

If you move the mouse cursor off the chart and then back on, it ghosts the first drawing of the cursor.

Disabling the code that turns the cursors on and off when you enter / leave the chart will get rid of the one problem but the panning and selection of a context menu issue would still be a problem.

I hope that helps.

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

Post by Narcís » Tue Dec 18, 2007 4:16 pm

Hi Loz,

Thanks for the information and example project.

Checking your project I can confirm that this issue is not related to the new manual double-buffering implementation. It is related to FastCursor. Setting this property to false solves the problem:

Code: Select all

        private void Form1_Load(object sender, EventArgs e)
        {
            tChart1.Series[0].FillSampleValues(100);
						cursorTool1.FastCursor = false;
        }
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

Aptitude
Newbie
Newbie
Posts: 14
Joined: Wed May 23, 2007 12:00 am
Contact:

Post by Aptitude » Tue Apr 01, 2008 5:48 am

Hi All,

I had the same problem and I couldn't just leave fastcursor property to false all the time as the data displayed is very large in my case. I have managed to build a work around for this so I thought of posting it here, considering it might be useful to others.

The workaround is basically to disable the fastdraw (i.e. set it to false) on every paint event of the parent and on every BeforeDraw event of the chart. I had to do it for single click events also in my case as a single click also seemed to leave a ghost line.

And then re-enable the fastdraw property on every "Change" event of the cursor tool.

It worked out well for me.

Hope it helps you too.

Regards,
Gaurav

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

Post by Narcís » Thu Apr 24, 2008 2:59 pm

Hello everyone,

You may be intrested in checking out the new TeeChart for .NET v2 update build that fixes the FastCursor issue. The fix has also been implemented for the next TeeChart for .NET v3 maintenance release due to be out on early May.
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