back to Icon
Description
This function is used to change the label of an icon to a new string. Note that this function automatically redraws the icon with the new label.
Syntax
.ChangeLabelString(const char new_label[20]);
Parameters
new_label[20]: constant character string for the new icon label
Returns
None.
Examples
#include <FEHLCD.h> int main(void) { // declare a single icon called software_button FEHIcon::Icon software_button; // set its parameters with "BUTTON" as the label, // top left corner at 120,80 and size 80 by 80, // and make the border scarlet and the text gray software_button.SetProperties("BUTTON", 120, 80, 80, 80, SCARLET, GRAY); // draw the icon software_button.Draw(); // change the icon label and automatically redraw the icon software_button.ChangeLabelString("NEW"); }