Admin Production ni-theme
Current Publication

KeyPressEventIsTrailByte

LabWindows/CVI

KeyPressEventIsTrailByte

int KeyPressEventIsTrailByte (int eventData2);

Purpose

Call this function when you receive an EVENT_KEYPRESS in a panel or control callback to determine if the callback's eventData1 parameter contains the second byte of a two-byte character. If the callback's eventData1 parameter contains a trail byte, you can call GetKeyPressEventCharacter to get both bytes of the character.

Refer to the GetKeyPressEventCharacter function reference for an example of how to use this and other key press event functions.

Parameters

Input
Name Type Description
eventData2 int The panel or control callback's eventData2 parameter.

Return Value

Name Type Description
isTrailByte int > 0 if the EVENT_KEYPRESS event is for a trail byte of a two-byte character.

0 if the EVENT_KEYPRESS event is not for a trail byte of a two-byte character.

Negative values indicate that an error occurred.

Additional Information

Library: User Interface Library

Include file: userint.h

LabWindows/CVI compatibility: LabWindows/CVI 6.0 and later