[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
oWin:keyDown( <nKey>, <nKeyFlag> ) -> <nil>
------------------------------------------------------------------------------
PARAMETER:
<nKey> The value of the pressed key
<nKeyFlags> Keyboard status
DESCRIPTION:
This method handles all WM_KEYxxx messages that Windows sends to
our window. They are sent when a window has keyboard focus and when a
NON-SYSTEM key ( without the <Alt> key ) is pressed.
::KeyDown() handles keys like VK_TAB ( to move the controls
input focus ) or VK_F1 ( to call ::HelpTopic() ).
Then the bKeyDown block is evaluated with <nKey> and <nKeyFlag>
as arguments
Please press Related Topics: and select WM_KEY for detailed
informations about the Topic and the parameters
HINTS:
This method is 'lower' than the ::keyChar() method, in that
it handles all keys on al lower level. With ::keyDown() you can
actually check if the key '1' was pressed on the number pad on the
top row by looking at the VK_ code of nKey and the nKeyflags.
So this method checks the actual physical keys, and also handles keys
like the arrow keys, which ::KeyChar() does not !
If you are only looking for a pressed '1' key, then you should use
the ::KeyChar()message with it's bKeyChar eventblock.
!seealso:"wm.eho:WM_KEY" "bKeyDown" "KeyChar"
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson