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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to well-aligned print a 2D string array to a textbox?

0 Kudos
Message 11 of 12
(849 Views)

Hi aveter,

 

I have a suspicion that your "Application Font" size isn't the same as what is used in the text box. The "Get Text Rect.vi" uses the default application font size in its calculation if an input is not wired, which I see from your screenshot is set to 17 pt, whereas the textbox looks like the default 15 pt.

 

Supply the actual font used by the text box to "Get Text Rect.vi" and you'll align the text as close as possible without setting its font to monospace:

 

Well Aligned Text Remaining Rows v2.png

Well Aligned Text Remaining Rows FP.png

 

I agree with the other posters on the awkwardness of this solution and the burning need for something more elegant.

Feel free. Contact me for anything more,
    Pang

You too can be LabVIEW Awesome!
0 Kudos
Message 12 of 12
(832 Views)