Page 1 of 1

cursor does not work

Posted: Tue Jul 21, 2009 11:29 am
by 13052929
I have only one control tChart1 on main page. In *.cs class I have such a code:

Code: Select all

   

       Steema.TeeChart.Tools.CursorTool cursorTool1 = new Steema.TeeChart.Tools.CursorTool(tChart1.Chart);
        Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);


        line1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;


        cursorTool1.Style = Steema.TeeChart.Tools.CursorToolStyles.Vertical;
        cursorTool1.FollowMouse = true;
        cursorTool1.Active = true;
        cursorTool1.Series = line1;
        


        line1.FillSampleValues(20);


I would like the cursor move when mouse cursor is moving. Why does this example not work ? What's wrong with it ?

Re: cursor does not work

Posted: Tue Jul 21, 2009 1:12 pm
by yeray
Hi jarp,

It's strange, I pasted your code in a new testing application and everything seems to work as expected. Is it possible to be any other important step in your application that we are missing to reproduce the problem? Could you please test the same code in a new simple winforms application? and, could you please tell us what exact TeeChart version are you using?

Thanks in advance.

Re: cursor does not work

Posted: Wed Jul 22, 2009 6:49 am
by 13052929
Hi,

I have TeeChart at version 3.5.3425.20244. The problem is that I would like to use this in ASP .Net application.
In the code I listed I get static cursor in default position. The cursor is not followed by the mouse cursor in my ASP .NET application.
I attached exactly the same code in the whole application. Could you look at it ?

Re: cursor does not work

Posted: Wed Jul 22, 2009 10:53 am
by 10050769
Hello jarp,

I comment that you don't use cursor tool in ASP.NET using followed property, because you in ASP .NET you have an image, and is not possible to calculate points and therefore cursor doesn't move. Only, you can move cursor in your ASP.NET with click event, that calculate points to clicks.

Thanks,