06-09-2016 06:19 AM
Hello ppl,
I have an LED control over which I have to write a Label which is a longer than the size of the LED. Is there an option that I divide the label name in two lines one below the other.
Also, another question - Can I make the background color of the label transparent so that I may have no effect on the color of the the LED control.
Thank you and waiting for your fast response.
Best Regards
Raunak Gupta
06-09-2016 06:41 AM - edited 06-09-2016 06:46 AM
Ctrl + Enter splits labels in 2 lines.
The coloring tool has an option for "Transparent": it's that little "T" in the lower left corner. It's not enabled for every graphical element (e.g. you cannot paint the panel area in trasnparent), but it can be used for label background color.
06-09-2016 07:57 AM
Dear Roberto,
Ctrl + Enter works when we manually enter in UI. But for example I want to read a label from a file and if a label is bigger than the control then how can i divide it into two lines?
By the way thanks for the colour question. That worked.
06-09-2016 08:24 AM - edited 06-09-2016 08:25 AM
erraunakgupta ha scritto:Ctrl + Enter works when we manually enter in UI. But for example I want to read a label from a file and if a label is bigger than the control then how can i divide it into two lines?
That's a different matter! In order to get the width of a label you must:
06-09-2016 08:30 AM
It has occurred to me that step 2 is not needed: look at samples\userint\listdelx CVI example for an example on how to match the metafont with an existing font used in the UI editor when GetTextDisplaySize is used.