int KeyPressEventIsTrailByte (int eventData2);
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.
Input | ||
Name | Type | Description |
eventData2 | int | The panel or control callback's eventData2 parameter. |
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. |