LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I move the Ring Ctrl pointer to what I specify?

If I have a Ring Slider Control and it has 5 items in it. How can, when the user hits the 'Down Arraow' automatically move the pointer for that control down to the next item. Or from one slide to another.
Derek
0 Kudos
Message 1 of 2
(2,687 Views)
Well, assuming the Ring control is the Active Control when you press these keys, you just need to add to the Ring control event handler to watch for these key presses and set the position of the pointer. The arrow keys are virtual keys (UP arrow = 1536, DOWN arrow = 1792). Attached is an example program.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,687 Views)