OnKey

Occurs when the user press any key in Grids control with the input focus

 

 

  

Syntax:

OnKey <ActionProcedure>

 

You can also make use in your procedure function following HMG functions:

HMG_GetLastVirtualKeyDown() and HMG_CleanLastVirtualKeyDown()

 

Notes

·         Keyboard functions can be found in Advanced/Read Keyboard and Mouse

·         Keys values are defined in \hmg...\INCLUDE\i_keybd.ch file, same like as for HotKey definitions.

·         ON KEY is used as a Grid property at Standard syntax (xBase style: @... Grid) and please do not confuse ON KEY for Keyboard Shortcuts (HotKeys) definition.

 

See examples at:

 hmg...\SAMPLES\Controls\Grid\GridOnKeyOnClick\demo.prg

hmg...\SAMPLES\Controls\Grid\GridOnKeyOnClick\demo2.prg