ImageGear Professional for Windows ActiveX
KeyDown Event

Description:

Called when the thumbnail browser has an input focus and the user presses any key on the keyboard. The client program can process this event, for example, to remove an item from the thumbnail browser when "Delete" key is pressed.

Syntax:

Sub IGGUIThumbnailCtl_KeyDown(VkeyCode as Long, KeyState as
Long)

Parameters:

Name Description
VKeyCode Specifies the virtual-key code of the non-system key.
KeyState Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag. See table below for bits description.

Description of KeyState bits:

0-15 Specifies the repeat count for the current event. The value is the number of times the keystroke is auto-repeated as a result of the user holding down the key. If the keystroke is held long enough, multiple events are sent. However, the repeat count is not cumulative.
16-23 Specifies the scan code. The value depends on the original equipment manufacturer (OEM).
24 Specifies whether the key is an extended key, such as the right-hand ALT and CTRL keys that appear on an enhanced 101-key or 102-key keyboard. The value is 1 if it is an extended key; otherwise, it is 0.
25-28 Reserved; do not use.
29 The value is always 0.
30 Specifies the previous key state. The value is 1 if the key is down before the message is sent, or it is zero if the key is up.
31 Specifies the transition.

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback