cursor does not work

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jarp
Newbie
Newbie
Posts: 17
Joined: Thu Apr 09, 2009 12:00 am

cursor does not work

Post by jarp » Tue Jul 21, 2009 11:29 am

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 ?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: cursor does not work

Post by Yeray » Tue Jul 21, 2009 1:12 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jarp
Newbie
Newbie
Posts: 17
Joined: Thu Apr 09, 2009 12:00 am

Re: cursor does not work

Post by jarp » Wed Jul 22, 2009 6:49 am

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 ?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: cursor does not work

Post by Sandra » Wed Jul 22, 2009 10:53 am

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,
Best Regards,
Sandra Pazos / 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