08-04-2014 03:44 PM
Hi everyone, I was wondering if there is a way in LabVIEW to dynamically size a front panel indicator text box. My issue is that sometimes this indicator can be fed more text than the indicator text box can fit. Is there a way to make this indicator text box dynamically size itself based on how much text there is sent into it?
Thanks so much!
08-04-2014 05:58 PM
Right click the indicator, create, propery node, size.
But I would just make the indicator large enough to hold the largest amount of text you are expecting. If you place other controls or indicators near it you could cover them with the text indicator. You also only want to write the new size based on the 1st time you see each new message, not on every iteration of your program.
08-04-2014 09:16 PM
08-04-2014 10:55 PM
I generally make the Text indicator a bigger size and make it transparent, also I would add a scroll bar to it. So now it can accomodate larger size of text and also the smaller one.
08-05-2014 11:27 AM
Hey,
Take a look at this:
https://decibel.ni.com/content/docs/DOC-26783
It is a reference design for resizing objects depending on your settings. You might not be able to use the library, but maybe you can use parts of it.
Thanks,
Daniel