BtnSetBitmap Macro

Microchip Graphics Library

Microchip Graphics Library
BtnSetBitmap Macro
C
#define BtnSetBitmap(pB, pBtmap) ((BUTTON *)pB)->pBitmap = pBtmap
Overview

This macro sets the bitmap used in the object. The size of the bitmap must match the face of the button.

Input Parameters
Input Parameters 
Description 
pB 
Pointer to the object. 
pBitmap 
Pointer to the bitmap to be used. 
Returns

none

Preconditions

none

Side Effects

none

Example
extern BITMAP_FLASH myIcon;
BUTTON *pButton;

    BtnSetBitmap(pButton , &myIcon);
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved