LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Gradient on the background of a slide bar

Hi,

I would like to have a gradient [example: red to blue] on my slide bar background. I don't want it to change depending on the slider position, it should remain fixed.

However, I would like to be able to change it to another gradient [example: green to orange] at some point in the run time.

Can this be done?

Thanks

Aleks.
0 Kudos
Message 1 of 6
(5,128 Views)

Yes, you can.

Here's an example I was given for a dial but the principle should be the same for a slide bar.

I've changed the colors around experimenting with it.

0 Kudos
Message 2 of 6
(5,121 Views)
Thanks!
 
But I forgot to mention, I have labview 7.1
 
Is there a way I could view your VI somehow?
 
Thanks again
Aleks.
0 Kudos
Message 3 of 6
(5,117 Views)
I'll post a screenshot of the code. That should help you reproduce it. Good luck!

Message Edited by Jarrod S. on 05-11-2006 12:54 PM

Jarrod S.
National Instruments
Message 4 of 6
(5,109 Views)
Hi,

I tried implementing your VI in labview 7.1. I can't seem to find the scale.interpcolor[] property in the property node. Is it possible that it's a LabView 8 exclusive property? If so, is there a LabView 7 equivalent?

Thanks
Aleks.
0 Kudos
Message 5 of 6
(5,089 Views)
Hi Aleks,

a 'Meter' control has these properties (MarkerValues[], InterpColor), but a normal 'slide' doesn't have them!
So those properties are only available, when the scale already has a "colorful" background 🙂

But: you can put a second object behind your control to simulate the color ramp. Or you try your luck with customizing the control.

Message Edited by GerdW on 05-15-2006 01:34 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(5,080 Views)