I play around with the "TurnLEDOffAndOn" example and augmented the code by:
Code: Select all
void SendToIPButton1()
{
InterfacePanel MyPanel;
MyPanel.ShowControl(F("IPButton1"));
.
.
// my added code line:
MyPanel.SetText(F("IPButton1"),F("uhu"));
}
but the text of the button does not change - the interface says
... but of course Text is a member of the button class.Text doesn't exist in IPButton1
Here is the serial log:
MegunoLink Pro - Turning and LED on and off
-----------------------------
!ToggleLED
Got ToggleLED command.
{UI|SET|IPButton1.Visible=True}
{UI|SET|IPButton1.Visible=False}
{UI|SET|IPButton1.Visible=True}
{UI|SET|IPButton1.Text=uhu}
{UI|SET|IPButton1.Enabled=True}
{UI|SET|IPButton1.ForeColor=Red}
{UI|SET|IPButton1.BackColor=Blue}