LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String Indicator Background Color only changes Frame

Solved!
Go to solution

I would like to change the background color of my String Indicator in the Block Diagram. I used the correct porcedure - via the property node - text - colors - BG color. But instead of changing the color of the entire indicator field, only the frame color changes (see image). I am using LabVIEW 2019 SP1, maybe it has something to do with the version I'm using? Thank you for helping!

 

 String Indicator.png

0 Kudos
Message 1 of 6
(238 Views)
Solution
Accepted by topic author adrianslab99

@adrianslab99 wrote:

I would like to change the background color of my String Indicator in the Block Diagram. I used the correct porcedure - via the property node - text - colors - BG color. But instead of changing the color of the entire indicator field, only the frame color changes (see image). I am using LabVIEW 2019 SP1, maybe it has something to do with the version I'm using? Thank you for helping!

 

 String Indicator.png


Do you use "Text.Colors" or do you use "Text.Text Colors"? You have to use the second one.

Setting the background color on system controls will not work.

0 Kudos
Message 2 of 6
(219 Views)

I strongly suggest that you attach the actual String Indicator (so we can "play with it" and maybe even suggest how you can write a little bit of code in LabVIEW to programmatically change its appearance.  Obviously, if you only provide us with a "picture" of your control, we can't (easily) "reverse-engineer it" to its LabVIEW representation (I'm assuming you don't know about snippets).

 

Bob Schor

0 Kudos
Message 3 of 6
(188 Views)
Solution
Accepted by topic author adrianslab99

@adrianslab99 wrote:

 I used the correct porcedure - via the property node - text - colors - BG color. 

 

 String Indicator.png


 

 

There are two different [Text.BGColor] properties and you can only distinguish them when showing long names for the properties. In your case, the font has a grey background color, so you are NOT doing it right. 😄

 

Make sure the text.text background is transparent.

 

altenbach_0-1760632055890.png

 

 

0 Kudos
Message 4 of 6
(184 Views)
Solution
Accepted by topic author adrianslab99

Here are the two properties with (unfortunately!) the same short name.

 

altenbach_0-1760632820281.png

 

0 Kudos
Message 5 of 6
(175 Views)

That was it, thanks for the help! So easy in the end...

0 Kudos
Message 6 of 6
(139 Views)