Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006

Dialog Box Template

4 ratings | 3.75 out of 5
Print

Downloads

Filename: dialogtemplate_6_1.vit
Requirements: View

You can use the attached template to create VIs that act as dialog boxes. You can use the template only in LabVIEW Full or Professional Development Systems.The template includes OK and Cancel buttons on the front panel. On the block diagram, an Event structure handles Value Changed events for the OK and Cancel buttons. The events occur when the user clicks the buttons. In addition, the template has typical dialog box settings. On the Window Appearance page of the VI Properties dialog box, the Window Style is Dialog, and Window Title contains a custom title. The front panel is the Panel & Object system color, which adapts the appearance of the front panel to the system color of any computer that runs the VI. The Event structure handles the Panel Closing event, which occurs when the user clicks the X in the titlebar of the window. Doing so is equivalent to clicking the Cancel button.

Requirements


Filename: dialogtemplate_6_1.vit

Software Requirements


Application Software: LabVIEW Full Development System 6.1
Language(s): LabVIEW

 
4 ratings | 3.75 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).