back to Icon
Description
This function is used to change the label of an icon to a new integer. The integer value is converted into a string to be printed inside the icon. Note that this function automatically redraws the icon with the new label.
Syntax
.ChangeLabelInt(int val);
Parameters
val: integer value 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.ChangeLabelInt(123456); }