TeMsgDefault Function

Microchip Graphics Library

Microchip Graphics Library
TeMsgDefault Function
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, 
Add a character in the buffer and update the text displayed. 
 
 
 
TE_MSG_SPACE 
Touch Screen, 
Insert a space character in the buffer and update the text displayed. 
 
 
 
TE_MSG_DELETE 
Touch Screen, 
Delete the most recent character in the buffer and update the text displayed. 
 
 
 
TE_MSG_ENTER 
Touch Screen, 
User can define the use of this event in the message callback. Object will just update the key. 
 
 
 
TE_MSG_RELEASED 
Touch Screen, 
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.

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved