UI Interest Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Color of String Control while Enter Text

We are making a custom string control with a gradient frame and a transparent text (much like the military String.ctl). Everything works almost as expected but I could not find a way to change the background color of the text while it is in "edit mode", that is, text can be entered. For example the mentioned String.ctl shows a solid black box in edit mode and a transparent background in display mode.

Display Mode Example:

Edit Mode Example:

0 Kudos
Message 1 of 5
(5,220 Views)

I hope it will help you, if not then please share your vi for more information.

https://decibel.ni.com/content/docs/DOC-46577

0 Kudos
Message 2 of 5
(4,378 Views)

Unfornutaly I cannot open you link (Access denied oder "Sie sind nicht berechtigt" in German)

Please find attached an example: The string control has a image as background. The text component is transparent so that the frame background shines through. But as soon as the user enters a text, a blank white rectangle is displayed. I want to change the color similar to the real background.

0 Kudos
Message 3 of 5
(4,378 Views)

Can you please save this string.clt as previous Version 14.0 ?

0 Kudos
Message 4 of 5
(4,378 Views)

Of course.Thank you for your help.

0 Kudos
Message 5 of 5
(4,378 Views)