ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Text-Wrap VI

Hello everybody!

As I have tried to wrap Text directly inside a multicolumn list, i searched my way for word-wrapping VIs but could not find anything. Since everybody seems to be using the "GetTextRect"-VI to compute the needed space for a certain amount of text, I went a different way:

In my VI i use the text-wrap function of a string-element, define its width and then read it out line-by-line to get the wrapped text.

 

I hope this helps somebody like me out there.

Is this implementation legit and any good?

 

Thank you.

0 Kudos
Message 1 of 5
(4,625 Views)

Hi tscheng,

 

could you please attach a snippet or the VI itself instead of a JPG picture?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(4,604 Views)

LabVIEW 2010

Message 3 of 5
(4,590 Views)

Nice!  Here's a slightly simpler version (including 'font' input since this can affect the result):

 

 

textWrap.png

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

This worked perfectly. Thankyou.!!!

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