CursorTool - doubled cursor when changing the Active propert
-
- Newbie
- Posts: 2
- Joined: Tue Feb 14, 2006 12:00 am
- Contact:
CursorTool - doubled cursor when changing the Active propert
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?
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?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Loz,
It's most unlikely as the original issue hasn't been fixed yet.Is it related to the new manual double buffering updates?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
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.
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.
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.
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.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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:
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 |
Instructions - How to post in this forum |
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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |