Logic Machine Forum
Label Text via Script - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Label Text via Script (/showthread.php?tid=3676)



Label Text via Script - sjfp - 10.11.2021

Hi, is it possible to change the text label text via script.
Example have a label text "System in Auto" but changes to "Controls Locked" when a Boolean object changes to false


RE: Label Text via Script - Daniel - 10.11.2021

Why don't you use enumeration(Custom value in objects)? You can specify any text for any value and display such object just as value.


RE: Label Text via Script - sjfp - 10.11.2021

(10.11.2021, 17:16)Daniel Wrote: Why don't you use enumeration(Custom value in objects)? You can specify any text for any value and display such object just as value.

because the control object has already got Auto and Manual as Custom values allocated :-)


RE: Label Text via Script - Daniel - 10.11.2021

I'm just suggesting to replace text label with an object with custom value. Set it to rad only and will look like label.


RE: Label Text via Script - sjfp - 11.11.2021

(10.11.2021, 18:12)Daniel Wrote: I'm just suggesting to replace text label with an object with custom value. Set it to rad only and will look like label.

OK, now see what what you mean.
But it would be nice to have a dynamic Text field option in LM's at some point.