Example Code

Programmatically Changing Font Size of Front Panel Controls for Different Screen Resolutions

Code and Documents

Attachment

This program was developed so that the user can change the font size of the controls on the front panel to adapt to different screen resolutions.

On the block diagram, you can specify the size you want fonts to appear at different resolutions.

On the front panel, select the current screen resolution and the VI you want to adjust. You also can use the VI as a subVI inside of another program. You can use the error in and error out clusters to control execution.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors