Benchtop Measurement and Test
Distributed Measurement and Control
High-Performance Test
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!