C
void TeMsgDefault( WORD translatedMsg, void * pObj, GOL_MSG * pMsg );
Overview
This function performs the actual state change based on the translated message given. The following state changes are supported:
Translated Message |
Input Source |
Set/Clear State Bit |
Description |
TE_MSG_ADD_CHAR |
Touch Screen, |
Set TE_UPDATE_TEXT, TE_UPDATE_KEY, |
Add a character in the buffer and update the text displayed. |
|
|
Clear TE_KEY_PRESSED |
|
TE_MSG_SPACE |
Touch Screen, |
Set TE_UPDATE_TEXT, TE_UPDATE_KEY, |
Insert a space character in the buffer and update the text displayed. |
|
|
Clear TE_KEY_PRESSED |
|
TE_MSG_DELETE |
Touch Screen, |
Set TE_UPDATE_TEXT, TE_UPDATE_KEY, |
Delete the most recent character in the buffer and update the text displayed. |
|
|
Clear TE_KEY_PRESSED |
|
TE_MSG_ENTER |
Touch Screen, |
Set TE_UPDATE_TEXT, TE_UPDATE_KEY, |
User can define the use of this event in the message callback. Object will just update the key. |
|
|
Clear TE_KEY_PRESSED |
|
TE_MSG_RELEASED |
Touch Screen, |
Clear TE_KEY_PRESSED |
A Key in the object will be redrawn in the unpressed state. |
|
|
Set Te_UPDATE_KEY |
|
TE_MSG_PRESSED |
Touch Screen, |
A Key in the object will be redrawn in the pressed state. |
Input Parameters
Input Parameters |
Description |
WORD translatedMsg |
The translated message. |
GOL_MSG * pMsg |
The pointer to the GOL message. |
pTe |
The pointer to the object whose state will be modified. |
Returns
none
Preconditions
none
Side Effects
none
Example
See BtnTranslateMsg() example.