C
WORD EbTranslateMsg( void * pObj, GOL_MSG * pMsg );
Overview
This function evaluates the message from a user if the message will affect the object or not. The table below enumerates the translated messages for each event of the touch screen and keyboard inputs.
Translated Message |
Input Source |
Events |
Description |
EB_MSG_CHAR |
Keyboard |
EVENT_CHARCODE |
New character should be added. |
EB_MSG_DEL |
Keyboard |
EVENT_KEYPRESS |
Last character should be removed. |
OBJ_MSG_INVALID |
Any |
Any |
If the message did not affect the object. |
Input Parameters
Input Parameters |
Description |
GOL_MSG * pMsg |
Pointer to the message struct containing the message from the user interface. |
pEb |
The pointer to the object where the message will be evaluated to check if the message will affect the object. |
Returns
Returns the translated message depending on the received GOL message:
- EB_MSG_CHAR – New character should be added.
- EB_MSG_DEL – Last character should be removed.
- OBJ_MSG_INVALID – Object is not affected.
Preconditions
none
Side Effects
none
Example
Usage is similar to BtnTranslateMsg() example.