07-10-2012 01:00 PM
I have some code. Lots of UI front panels. Many controls do not have consistent font sizes. Is there any way to fix this quickly without going to each control and setting manually? Thanks in advance.
07-10-2012 01:30 PM
On a single VI you can simply select all the controls and change the font using the dropdown menu - this will change the font for all selected items.
If you're trying to do this for multiple VIs then you'd have to resort to using the VI server. You can get a reference to the VI's front panel and then iterate over all the controls/indicators. Properties are available to set the font for captions and labels and the control text, if it has any (like numeric controls). Basically, 2 for-loop. One loop for the VI references, and another for the control references.