LabVIEW Idea Exchange

About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Top Kudoed Authors
cancel
Showing results for 
Search instead for 
Did you mean: 

Associate Enum Value With Enum Formatting.

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
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.