LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I keep cursor stable when moving X scroll?

Dear All,
       How can I keep cursor stable in the graph when moving X scroll?
       Normally, the cursor is moving while moving X scroll, because the X scroll changes.
 
Thank you!
0 Kudos
Message 1 of 3
(3,057 Views)
Hi Hugo,

the cursor has it's x- and y-coordinate. If you move the x scroll-bar, the cursor moves too.

To avoid this you have to move the cursor with the x scroll bar. To do so you have to get the cursor position and the x-scale min/max before movement. While movement you have to calculate a new cursor position relativ to the new x-scale and set the cursor accordingly. (Problems may arise if the cursor is connected to a plot...)
That's what property nodes are used for!

Message Edited by GerdW on 09-01-2006 10:14 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(3,052 Views)
Thank you for your reply.
Do you think it is too complex? Is there any easy way? And I think there is no event case of moving X scroll.
 
Thank you.
0 Kudos
Message 3 of 3
(3,031 Views)