LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Trapping Easytab keystrokes, scroll panel with keyboard.

Is there any way to trap for key strokes when easytab has the focus? When the tabs have focus, I would like to be able to see if the up or down arrow keys are pressed, and scroll the panel instead of moving to the next row of tabs.

Related to that, is there a key combo which will scroll a panel? I havnt found one.
0 Kudos
Message 1 of 2
(2,941 Views)
Check out the attached example zip file, it does what you requested.
Summary:
1. I use the EVENT_KEYPRESS to capture keystrokes
2. Each key has a seperate ID stored in the eventData1 in the callback function - up arrow = 1536 & down arrow = 1792 on my machine.
3. When you press the up and down arrow, I call SetPanelAttribute and modify the vertical scroll offset.

The example shows all of this succintly, definitely look at that. Good luck.

ben schulte
application engineer
national instruments
www.ni.com/web
0 Kudos
Message 2 of 2
(2,941 Views)