onKeyUp
Event fired when any key is released while the control has focus.
Parameters
<virtual key expN>
The Windows virtual-key code of the key released. For a list of virtual-key codes, see the Win32 Programmer’s Reference (search for "Virtual-key Codes" in the index).
<repeat count expN>
The number of times the keystroke is repeated based on how long the key is held down; always 1 for onKeyUp.
<key data expN>
A double-byte value that contains information about the key released, stored in separate bits. The bits of this parameter contain the following information:
Bit numbers |
Description |
0–7 |
Keyboard scan code (OEM dependent) |
8 |
Extended key (1 if true) such as right Alt and Ctrl, and numbers on numeric keypad |
9–12 |
Reserved |
13 |
Context code: always 0 for onKeyUp |
14 |
Previous key state: always 1 for onKeyUp |
15 |
Transition state: always 1 for onKeyUp |
Property of
PaintBox
Description
Use onKeyUp with onKeyDown for complete control of keystrokes while a PaintBox object has focus. For more information, see onKeyDown.