This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Programmatically Change the Color of a Front Panel Object

Updated Apr 12, 2023

Environment

Software

  • LabVIEW Base
  • LabVIEW Full
  • LabVIEW Professional

Is there a way to programmatically assign or change the colors of Front Panel Objects in LabVIEW?

You can connect a selected color value to a Property Node that will allow you to set the color of a Front Panel object. To do this complete the following steps: 

  1. Create a color value control or constant that will allow you to select your desired color.
  2. Right-click the <Front Panel Object> you would like to programmatically change the color of, and click Create»Property Node.  
  3. From the drop down menu, select the <specific property> for the specifc color setting you want to modify.
  4. Place the Property Node on your block diagram then right-click on the <specific property> in the Property Node and select Change to Write.
  5. Click on the output terminal of the color control or color constant, you created in step 1, and wire it into the input of the <specific property> of the Property Node.
The image below shows examples of how to programmatically change the Fill Color of a Thermometer or change the Text Color of a String Control. Note: These specific examples use a Color Box Constant to select the desired color.

 

Additional Information

If there is a feature that is not available as a property node by default, you can customize front panel objects with XControls