
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - keychar action to be performed when pressing a key
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
KeyChar Action to be performed when pressing a key
--------------------------------------------------------------------------------
Syntax: KeyChar( <nKey>, <nFlags> ) --> 0 or Nil
Parameters:
<nKey> The value of the key pressed
<nFlags> Specifies the repeat count, scan code,
extended-key flag, context code, previous key-state flag, and
transition-state flag, For more information on these flags
please consult the MS-Windows API documentation.
Returns:
The KeyChar() method returns either 0 or Nil. It will return 0 if it
has handled the keystrokes and it will return the value of it's
ancestors (TWindow) KeyChar() method if it has passed the parameters
to that KeyChar() method
Comments:
This method handles all the WM_CHAR messages Windows sends to this
particular object. This method receives both the keycode and a set
of flags which can be used to determine more about the keystroke.
For controls it will handle the messages relating the <Tab> and
the <Shift> <Tab> keystrokes.
See Also: KeyChar
Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson