LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Background color of panel

Dear Labview community!

I would like to change the background color of the panel programmatically. How can I do that?

Beside that I want to change the control and indicator colors. I hope with property nodes I can do that. But for the panel I did not found anything what may help.

My target is understandable better when you have a look on the attachments.

Second question is how can I modify the graph palette buttons to the same way? They are always grey.


Using LW7.0 on WinXP

Regards
Tomi
0 Kudos
Message 1 of 5
(2,969 Views)
The VI property Front Panel returns a reference to the panel, which you can feed into another property node to change the color. You can also use this on controls and indicators, but keep in mind that different controls may behave differently when you change their FG\BG colors.
I don't think the graph buttons are accessible through the properties.

___________________
Try to take over the world!
0 Kudos
Message 2 of 5
(2,963 Views)
Hi

I agree with tst - I don't now way either to change the color of graph buttons during runtime.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 5
(2,956 Views)
Thanks it works fine with the panel background. But I cannot change the decoration colors (stand alone deco. or deco. of an control) the same way any idea?
0 Kudos
Message 4 of 5
(2,944 Views)
For decorations on the FP this should work (take the [Decorations] property from the front panel). Like I said, the behavior for FG and BG might change between decorations.
For decorations on controls I don't think you can control it, unless you have it available.

___________________
Try to take over the world!
0 Kudos
Message 5 of 5
(2,937 Views)