_ITE3DWindowEvents

_ITE3DWindowEvents is the notification interface for events that relate to the 3D Window.

 

 

Events

 

OnKeyboardMessage

This event occurs when the user presses a keyboard key.

OnKeyboardMessage

This event occurs when the user presses a keyboard key.

 

JavaScript

 

OnKeyboardMessage(

       Message,

       KeyCode,

       KeyData,

       pbHandled)

 

C#

 

void OnKeyboardMessage(

       int Message,

       int KeyCode,

       int KeyData,

       ref object pbHandled)

 

C++

 

HRESULT OnKeyboardMessage(

       long Message,

       long KeyCode,

       long KeyData,

       VARIANT* pbHandled)

Parameters

Message

The state of the key that is pressed:

·          WM_KEYDOWN = 256

·          WM_KEYUP =257

KeyCode

Specifies the virtual-key code of the non-system key. See: MSDN Library (e.g., WM_KEYUP).

KeyData

Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown in the following table. See: MSDN Library (e.g., WM_KEYUP)

pbHandled

A Boolean that indicates whether or not the client handled the keyboard message itself and does not wish TerraExplorer to respond to the mouse action. When the value is FALSE, TerraExplorer handles the keyboard action.