Page 1 of 1

CursorTool - doubled cursor when changing the Active propert

Posted: Fri Jul 06, 2007 8:56 am
by 9640339
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?

Posted: Fri Jul 06, 2007 10:40 am
by 9348258
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.

Posted: Tue Jul 10, 2007 4:02 pm
by 9638762
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..

Posted: Tue Dec 18, 2007 1:35 pm
by 13045435
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?

Posted: Tue Dec 18, 2007 1:53 pm
by narcis
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.

Posted: Tue Dec 18, 2007 2:07 pm
by 13045435
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.

Posted: Tue Dec 18, 2007 2:39 pm
by 13045435
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.

Posted: Tue Dec 18, 2007 4:16 pm
by narcis
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;
        }

Posted: Tue Apr 01, 2008 5:48 am
by 45194
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

Posted: Thu Apr 24, 2008 2:59 pm
by narcis
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.