09-14-2018 05:28 AM
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
10-17-2018 02:39 AM
Hello SébastienG,
Were you able to find an answer to your question?
Thanks
Clement
10-17-2018 06:51 AM
Yes, I do it like that to have the correct position
_Selection._Value = ((XYCursor)(sender)).XPosition - (double)DataConverter.Convert(_StartDateTime, typeof(double));
10-18-2018 03:35 AM
Hello SébastienG,
I am pleased to know that you find the answer to your question.
Have a nice day.
Best regards,
Clement Dekeyser