Example Code

Programmatically Change the Background Color of a Menu Ring

Code and Documents

Attachment

Overview

This example demonstrates how to programmatically change the color of a menu ring control.

 

 

Description

Although the text and text background of a menu ring can be programmatically changed using property nodes, the menu ring control cannot be. This example demonstrates how to work around this limitation using a boolean indicator and transparent color. The color of the drop-down menu ring is set to transparent, and a boolean indicator is put in it's place behind the the menu ring text and arrow. The menu ring controls a case structure, where the color of the boolean indicator

  

 

Requirements

LabVIEW 2012 or later

 

Additional Images or Video

 

 Programmatically Change the Background Color of a Menu Ring.png

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.