LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot change the color of a Tab control

Solved!
Go to solution

Hi. I have a tab control that I would like to change the color of manually using the paintbrush but it won't let me. When I right click with the paintbrush over the Tab control, I get no color palette as expected. If I move the brush off the Tab, over the background, and right click, the color pallet appears and I can change the color of the screen background. If I place controls or boxes on the Tab, I can change their colors as well. If I place a new tab control from the menu, it behaves normally. I can color it with the paintbrush just fine. I have tried to change the color programmatically using a property node, but I get error 1131; "You cannot use this property with this control". I tried changing several different properties programmatically and always got this same error. The program was originally written with LabVIEW 2016 by someone else. I am trying to make a few changes using LabVIEW 2019. The reason I don't just replace the Tab control with a new one is there are over 100 controls and indicators on the 5 tabs along with many boxes that would need to be moved and repositioned.  Any ideas?

0 Kudos
Message 1 of 4
(2,690 Views)
Solution
Accepted by topic author EasierSaid

This seems to be a tab control from the "system" palette. System controls inherit their visuals from the OS theme and are not directly changeable. Try using a tab control form another palette (e.g. modern)..

Message 2 of 4
(2,679 Views)
Solution
Accepted by topic author EasierSaid

@EasierSaid wrote:

The reason I don't just replace the Tab control with a new one is there are over 100 controls and indicators on the 5 tabs along with many boxes that would need to be moved and repositioned.  Any ideas?


According to my tests, doing a "right-click ... replace" with a modern tab control leaves all tab contents intact. Try it! Make sure you right-click on the border of the tab control).

 

altenbach_0-1584378486483.png

 

Message 3 of 4
(2,678 Views)

Thanks for the quick response. I suspected it was something simple but never understood this about the System palette. I'll replace the tab control.

0 Kudos
Message 4 of 4
(2,664 Views)