Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to zoom the graph using arrow keys in the key board?


0 Kudos
Message 1 of 2
(3,448 Views)
You will have to set up an event handler for the OnKeyPress event of the graph and within that function check the key code to see whether or not it is a cursor key. The cursor key has an "extended scan code" that consists of two bytes which is different from the keys that have ascii representations. If you need more information on how to use this behavior I would recommend looking up "key codes" and "OnKeyPressEvent" at http://msdn.microsoft.com

Jason F
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 2
(3,448 Views)