Example Code

Change Font and Size of a String Indicator Programmatically

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW 2020 SP1

Code and Documents

Attachment

Description

This example shows you not only how to change the Font Size, Font Color, and Font Name programmatically of the text inside a string indicator and a Boolean button but also adjusts programmatically the size of the indicator in order to fit the whole text.

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