LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Moving a vertical Line right or left side gradually

 
Hi ,
I have plotted a vertical line , but now I want to move the line left or right gradually and programatically pressing and holding Left or Right Shift
Keys . Tell me plz, what to do to achieve this goal .
Regards
Subrata
0 Kudos
Message 1 of 2
(2,775 Views)
Supposing all this is to be done on a graph, you could place on your panel two buttons whose shortcut keys are left and right arrow. In the buttons' callback you can trap the EVENT_COMMIT event and change your line position (delete and replot in the new position). The system takes care of repeating the button press as long as you keep pressed the key.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 2
(2,771 Views)