From 11:00 PM CST Friday, Apr 11th - 1:30 PM CST Saturday, Apr 12th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

Content Type
Programming Language
Current manual

KeyPressEventIsTrailByte

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

Was this information helpful?

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit