Example Code

Adjustable Font and Size for One Button Dialog Box using LabVIEW

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

Code and Documents

Attachment

Overview
This VI adds functionality to the One Button Dialog VI. 


Description
The One Button Dialog VIs are non-movable, and the text defaults to the system default font and size. This is an inconvenience to users who desire large text or custom font in a specific dialog, while maintaining a default system font in other windows. This VI was based on a previous design found here: https://forums.ni.com/t5/Example-Programs/Movable-One-Button-Dialog-Using-LabVIEW/ta-p/3534823.


Requirements

  • LabVIEW Base Development System 2012 (or compatible)


Steps to Implement or Execute Code

  1. Unzip the attached folder to your computer
  2. Open the VI "Dialog Box Call 2012 NIVerified.vi"
  3. Enter message text in Display Message Control
  4. Change the Font Size, Font Name, and Font Color as needed
  5. Run the program

 

Additional Information or References
VI Block Diagram

 b.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Daniel Dorroh
National Instruments

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

Comments
Gearmiester
Member
Member
on

A+ This is exactly what I was looking for.

Works great! Clean and easy to understand VI.

Thanks!