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.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Coloring label

Hi,
How do i color the background of a lavel (not the font themselves)
0 Kudos
Message 1 of 5
(3,055 Views)

Hi,

Which label are you referring too?

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,050 Views)

Hi,

I'm sorry i was not clear.

The label i mean is from the decorate section in the control panel.

i can change the font color but could not find where i control the background of the label.

0 Kudos
Message 3 of 5
(3,045 Views)

Hi,

Is this the LabVIEW Decoration?

I think the only way is to do it statically using the paint brush tool.

 

If its a CVI Decoration then you could use the function SetCtrlAttribute (PanelHandle, ControlID, ATTR_FRAME_COLOR, color);

where color in an int containing the RGB value for the required colour.

Regards

Ray Farmer

 

Regards
Ray Farmer
0 Kudos
Message 4 of 5
(3,040 Views)

Yes Ray is right!!!

To get the paintbrush tool just hold down shift and right click.  The paintbrush tool is the one on the bottom.  You can change colors by pointing to whatever you want to change colors on and then right click and selecting your desired color. 

Message Edited by Sam R on 11-07-2005 10:00 AM

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 5
(3,027 Views)