Changing Text Background Colour of Front Panel Control or Indicator

Updated May 3, 2018

Reported In

Software

  • LabVIEW

Issue Details

I want to change the background colour of the text box in my string indicator programmatically. When I use a property node to change the colour is 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 colour of the control, the text box containing the string overlaps this colour which results in only a small border being visible.

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

WAS THIS ARTICLE HELPFUL?

Not Helpful