问题
Assigning background color at edit time works for all ring controls except "System ring":
I am trying to modify the background color of a Ring control using the RingText.BGColor property node, but it doesn't work. It does work for a Numeric control though:
What's wrong?
回答1:
As explained by @shmicah, menu rings do not support dynamically setting of bgcolor. However, this can be "solved" by first creating a text ring and then replacing it (right click -> replace) with a menu ring. Interestingly, this method works for the "modern" and "silver" menu rings but not for the classic.
After replacing the text ring with a menu ring, the original code works as-is.
(LabVIEW 2013)
来源:https://stackoverflow.com/questions/48793777/how-to-modify-rings-background-color-via-property-nodes