Search found 24 matches

by ljoli
Wed Jul 21, 2010 8:20 am
Forum: .NET
Topic: Xvalue of cursor does not correspond
Replies: 5
Views: 4768

Re: Xvalue of cursor does not correspond

Ok I saw now the difference between the two value.
It's clear now. :) The value what I want it's the cursor.Xvalue

Thank for all this information :wink:
by ljoli
Tue Jul 20, 2010 2:33 pm
Forum: .NET
Topic: Xvalue of cursor does not correspond
Replies: 5
Views: 4768

Re: Xvalue of cursor does not correspond

hello, Yeray,

The code is a little more simple but there is still the same problem.

When I put the cursor for example at x=5 => cursor_left=126 !?
by ljoli
Tue Jul 20, 2010 9:03 am
Forum: .NET
Topic: Xvalue of cursor does not correspond
Replies: 5
Views: 4768

Xvalue of cursor does not correspond

Hi, In my code the Xvalue of cursor does not correspond of the Label. It very strange. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Wi...
by ljoli
Mon Jul 19, 2010 11:04 am
Forum: .NET
Topic: receive data and create chart in real time
Replies: 6
Views: 6239

Re: receive data and create chart in real time

Yes that's works with DispatcherTimer !!

My problem is solved :wink:

Thanks
by ljoli
Mon Jul 19, 2010 9:49 am
Forum: .NET
Topic: receive data and create chart in real time
Replies: 6
Views: 6239

Re: receive data and create chart in real time

So, after some search on the web. I found a solution like below : using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using Sy...
by ljoli
Mon Jul 19, 2010 8:32 am
Forum: .NET
Topic: receive data and create chart in real time
Replies: 6
Views: 6239

Re: receive data and create chart in real time

Hello Yeray, In fact, I had a chart with my CSV file but it is not refresh like you say. I see the different class, in WPF there are "timer" class and "DispatcherTimer". But I don't know really how to use it. On the web I found this code -> http://social.msdn.microsoft.com/forums/en-US/wpf/thread/aa...
by ljoli
Fri Jul 16, 2010 3:35 pm
Forum: .NET
Topic: receive data and create chart in real time
Replies: 6
Views: 6239

receive data and create chart in real time

Hi, ----> I would like to build a chart with a CSV file which is update every 100ms. I began to write the following code : using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using Syste...
by ljoli
Fri Jul 16, 2010 12:25 pm
Forum: .NET
Topic: Two cursortool for standard dev of fastline
Replies: 17
Views: 13117

Re: Two cursortool for standard dev of fastline

Hi,

That is works on my project. The two cursors give me all data what I want. :wink:


Thanks lot Yeray and nice day
by ljoli
Thu Jul 15, 2010 11:05 am
Forum: .NET
Topic: Two cursortool for standard dev of fastline
Replies: 17
Views: 13117

Re: Two cursortool for standard dev of fastline

The exception has arrive when I want to move one cursor.

LJ
by ljoli
Thu Jul 15, 2010 10:48 am
Forum: .NET
Topic: Two cursortool for standard dev of fastline
Replies: 17
Views: 13117

Re: Two cursortool for standard dev of fastline

Another problem with the "cursor.change"

Now I use a CSV file for build my fastline. And I use all code before but I had an exception

Image

Uploaded with ImageShack.us

I attached my code on this post.


Best regards

LJ
by ljoli
Tue Jul 13, 2010 1:44 pm
Forum: .NET
Topic: Two cursortool for standard dev of fastline
Replies: 17
Views: 13117

Re: Two cursortool for standard dev of fastline

ok for the initial value I see on this topic -> http://www.teechart.net/support/viewtop ... f=4&t=9888 :!:

for init the value of cursor I do this :

Code: Select all


// initial position
Cursor_left.XValue = 100;
Cursor_left.YValue = 100;
Cursor_left.XValue = 100;

Thanks :mrgreen:
by ljoli
Tue Jul 13, 2010 1:11 pm
Forum: .NET
Topic: Two cursortool for standard dev of fastline
Replies: 17
Views: 13117

Re: Two cursortool for standard dev of fastline

Hi Yeray, Thanks for your example, I was looking for a way to build this function with a global variable. Another thing: How to define the initial value of one cursor ?? is it like that ? // initial position double init_value; init_value = 200; Cursor_left.XValue = init_value; Thank you again for al...
by ljoli
Fri Jul 09, 2010 3:16 pm
Forum: .NET
Topic: Two cursortool for standard dev of fastline
Replies: 17
Views: 13117

Re: Two cursortool for standard dev of fastline

The example of interpolating works but I can't do my objective. I want the Y value of each cursor for know the standard deviation between the two cursors. The problem : I can not take the value of each cursor because the function CHANGE return a VOID :!: like that : void cursor_right_Change(object s...
by ljoli
Fri Jul 09, 2010 10:01 am
Forum: .NET
Topic: Two cursortool for standard dev of fastline
Replies: 17
Views: 13117

Re: Two cursortool for standard dev of fastline

Ok Cool That is works very well 8)

Thanks and good day Yeray
by ljoli
Fri Jul 09, 2010 8:58 am
Forum: .NET
Topic: Two cursortool for standard dev of fastline
Replies: 17
Views: 13117

Re: Two cursortool for standard dev of fastline

I show you my code : // use cursors this.Cursor_left = new Steema.TeeChart.WPF.Tools.CursorTool(); this.tChart1.Tools.Add(this.Cursor_left); this.Cursor_left.Style = Steema.TeeChart.WPF.Tools.CursorToolStyles.Vertical; //color of cursor Cursor_left.Pen.Color = System.Windows.Media.Colors.Green; this...