Support Board
Date/Time: Mon, 12 May 2025 05:59:17 +0000
Post From: Display Inputs With Color
[2016-08-05 17:54:21] |
ManFromTanna - Posts: 6 |
Hi All, There doesn't seem to be a way to display a system's inputs with color. So below was a bit of a workaround. Only problem is I can't figure out how to get rid of ": 0.0". Any suggestions? Thanks. SCSubgraphRef LongLabel = sc.Subgraph[1];
SCInputRef Long = sc.Input[1]; Long.Name = "Long"; Long.SetCustomInputStrings("Long;No"); Long.SetCustomInputIndex(0); if (sc.SetDefaults) { if(Long.IntValue == 0) { LongLabel.Name = "Long"; LongLabel.PrimaryColor = RGB(0,255,0); } else { LongLabel.Name = "No"; LongLabel.PrimaryColor = RGB(255,255,255); } |
![]() |