Hi all,
could someone please give me a short example how to change the text colour depending on a value? I can't really find an explanation in the manual.
In practical I'd show some voltage measurements and change the text colour if the voltage goes under a certain value.
Thanks for helping.
Joe
How to use a text box for display only.
Hi Joe, for example
if (Temperature== 10) Panel.SetForeColor("MyTextbox", "Green");
else if (Temperature== 11)Panel.SetForeColor("MyTextbox", "Yellow");
else if (Temperature== 12) Panel.SetForeColor("MyTextbox", "Red");
else Panel.SetForeColor("MyTextbox", "Blue");
More commands are documented here
https://www.megunolink.com/documentatio ... r-library/
Cheers
Phil
if (Temperature== 10) Panel.SetForeColor("MyTextbox", "Green");
else if (Temperature== 11)Panel.SetForeColor("MyTextbox", "Yellow");
else if (Temperature== 12) Panel.SetForeColor("MyTextbox", "Red");
else Panel.SetForeColor("MyTextbox", "Blue");
More commands are documented here
https://www.megunolink.com/documentatio ... r-library/
Cheers
Phil