Changing Text Background Color of Control or Indicator in LabVIEW

Updated Jul 7, 2020

Reported In

Software

  • LabVIEW

Issue Details

I want to change the background color of the text box in my string indicator programmatically. When I use a Property Node to change the color it only changes a small border around my text.

Solution

  1. Create a Property Node for your control or indicator
    1. Right click on your control or indicator on the block diagram
    2. Select Create >> Property Node
  2. Select Text >> Text Colors >> BG Color as the property
  3. Right click the Property Node and select Change To Write
  4. Wire a color box to the input terminal

Additional Information

When selecting the property it is possible to select Text >> Colors >> BG Color, rather than Text >> Text Colors >> BG Color. The former property only changes the background color of the control, the text box containing the string overlaps this color, which results in only a small border being visible.

These 2 properties have the same name on the property node but behave differently.

Note that all objects have the FG property, so changes made may not be detected.