.Deselect()

back to Icon

Description

This function is used to make an icon appear deselected by returning the icon’s border to the normal thickness.

Syntax

.Deselect();

Parameters

None.

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();

    // select the icon
    software_button.Select();

    // deselect the icon
    software_button.Deselect();
}