BtnMsgDefault Function

Microchip Graphics Library

Microchip Graphics Library
BtnMsgDefault Function
C
void BtnMsgDefault(
    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 
BTN_MSG_PRESSED 
Touch Screen, Keyboard 
Button will be redrawn in the pressed state. 
BTN_MSG_RELEASED 
Touch Screen, Keyboard 
Clear BTN_PRESSED 
Button will be redrawn in the unpressed state. 
BTN_MSG_CANCELPRESS 
Touch Screen, 
Clear BTN_PRESSED 
Button will be redrawn in the unpressed state. 
Input Parameters
Input Parameters 
Description 
WORD translatedMsg 
The translated message. 
void * pObj 
The pointer to the object whose state will be modified. 
GOL_MSG * pMsg 
The pointer to the GOL message. 
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