LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Taylorh140

Associate Enum Value With Enum Formatting.

Status: New

This can be done using property nodes, but it would be hugely convenient if the formatting for a enum could be associated with its value.

 2017-04-21_12-57-15.png

1 Comment
JICR
Member

As a workaround you can use a tab control to achieve that without coding.

 

To do your example, create a tab control with 3 pages, name them Good, Bad, Ugly.

 

Right click > Visible Items > Page Labels Display :: This is your enum

Right click > Visible Items > Tabs :: Hide the tabs

 

Make the tab background transparent. Put a square decoration inside each tab, color them Green, Red and Blue as you like.

 

Make your enum background transparent. Put in over your tab, align the three colored decorations with your enum control.

 

When you change the enum, the color follows.

 

It's less code and more UI struggle, but it's just an idea.