BtnSetText Function

Microchip Graphics Library

Microchip Graphics Library
BtnSetText Function
C
void BtnSetText(
    BUTTON * pB, 
    XCHAR * pText
);
Overview

This function sets the string used for the object.

Input Parameters
Input Parameters 
Description 
BUTTON * pB 
The pointer to the object whose text will be modified. 
XCHAR * pText 
Pointer to the text that will be used. 
Returns

none

Preconditions

none

Side Effects

none

Example
XCHAR Label0[] = “ON”;
XCHAR Label1[] = “OFF”;
BUTTON Button[2];
    
    BtnSetText(Button[0], Label0);
    BtnSetText(Button[1], Label1);
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved