Page 1 of 1

How to avoid "flickering" bei Cursortool?

Posted: Tue Aug 22, 2006 6:42 am
by 9788246
Hi.
I dont know if "flicker" is the right word but I have such a problem:
I use a cursortool which follows the mouse. Though the cursor follow the mouse ,when I move the mouse over the chart, but I seems like a slow motion. I see the cursor on all over the points from the beginning Point to the mouse pointer. Ok I use a method that makes a comlex calculation on change evert of the cursortool, but there must be a way to fix this problem.
Thanks... :roll:

Posted: Tue Aug 22, 2006 9:17 am
by narcis
Hi MU,

Could you please send us an example we can run "as-is" to reproduce the problem here?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.

Posted: Wed Aug 23, 2006 6:07 am
by 9788246
Hi Narcis.. I can not send you ma ycode. But you can try to do something like that in "Change event" of the cursortool:

for(int i=0; i<10000;i++)
{
label1.Text=i.ToString();
}




(Cursortool follows the mouse, I have just a line in my tchart.)
Thanks..

Posted: Mon Aug 28, 2006 1:18 pm
by Pep
Hi,

I think the best way to solve this would be to draw your custom cursor (using the canvas techniques, drawing a line onto the Chart object using the OnMouseMove event) and then do the calculations there.