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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically modify frame color

I need to programmatically modify the frame color for a slider control.

I'm able to do this while developing through "Customize control" (see attachment), but I don't know how to do this during runtime.

 

I think I need a reference to the cosmetic element that represent the frame. Is there a way to do this?

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 3
(2,404 Views)

You can't do it with modern controls, but with a classic slider you can use the property Housing Colors -> FG Color.

0 Kudos
Message 2 of 3
(2,348 Views)

I can modify the housing color for modern controls too, but the frame is a different element.

 

I've just added a new idea in Idea Exchange Forum

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 3
(2,340 Views)