10-13-2008 01:05 PM
I'm trying to use a slide indicator that should work like this: considering a range of 100, if the value is less or equal 20 , for example, the fill color should be green, if the value is between 20 and 40, so, the fill color should be green up to 20 and yellow from 20 to 40 and so on. I tried to use the active slide property but I didin't get the effect I want. Anyone has an idea how to do this?
Thank you in advance!
Solved! Go to Solution.
10-13-2008 01:19 PM
Hi Luci_UFRJ,
you can use the "FillColor" property to set the color.
Hope it helps.
Mike
10-13-2008 01:24 PM
10-13-2008 01:36 PM - edited 10-13-2008 01:36 PM
Hi Luci_UFRJ,
yes it´s correct, but you can add additional sliders with different colors.
See the attached example.
Hope it helps.
Mike
10-13-2008 01:47 PM - edited 10-13-2008 01:51 PM
You need to layer sliders on top of each other, like this...
Beat to the punch!
10-13-2008 02:28 PM - edited 10-13-2008 02:37 PM
Here is a better version of that VI
Versions 8.6 and 8.0
10-13-2008 02:40 PM
Thank you, guys!!!! It works!
10-13-2008 02:44 PM - edited 10-13-2008 02:45 PM
Here's the same with slightly less code. 🙂
10-13-2008 03:07 PM - edited 10-13-2008 03:07 PM
And even less code. Ideally, you would wrap all this into an Xcontrol.
10-13-2008 03:10 PM