Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WaveformGraph axes

hello,

I'm working in c# with VisualStudio 2015 and I'm often annoyed by a problem of range on my waveformgraph, maybe you could have an idea to help me:

My graph has a defaultStart defined.

When I want to put a cursor on it, I double click and I've an event with the mouse position in pixl.

How could I put precisely this cursor with this pixl position which is not in the same format that the x range (started at defaultSart value)? Is there a mean to convert this value precisely?

Exemple: By XRange is defined from 14/09/2018 12h to 14/09/2018 13h and when I click in the waveform, I've 5 for exemple.

have you an idea?

Best regards

0 Kudos
Message 1 of 4
(2,462 Views)

Hello SébastienG,

 

Were you able to find an answer to your question?

 

Thanks

Clement

0 Kudos
Message 2 of 4
(2,383 Views)

Yes, I do it like that to have the correct position

_Selection._Value = ((XYCursor)(sender)).XPosition - (double)DataConverter.Convert(_StartDateTime, typeof(double));

 

0 Kudos
Message 3 of 4
(2,375 Views)

Hello SébastienG,

 

I am pleased to know that you find the answer to your question.

Have a nice day.

 

Best regards,

Clement Dekeyser

0 Kudos
Message 4 of 4
(2,372 Views)