LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Message box without close "x" button in title bar

Hi all,

 

I want to display a single-button message box to the user that they must acknowledge by clicking the button...what I want to avoid is the user being able to close the message box with the red "x" close button in the title bar. Is it possible to display a message box without the red "x"/title bar and/or disable the red "x" in the message box? I know how to disable the "x" in a vi so I'm thinking I can pull this off with a sub-vi but I want to know if there's an easier way that I'm overlooking?

 

Thanks,

-Ryan

0 Kudos
Message 1 of 2
(3,270 Views)

Yes it is possible.

 

You need to create a separate vi for your dialog window, and do all of the following in the VI Properties (Right-Click on the VI Icon)

 

Uncheck the Same as VI Name box, and give the window the approp name or leave blank

Select Window Appearance, and click on custom radio button

Click the Customize... Button

Un-check "Show Menu Bar", "Show Vertical Scroll Bar", "Show Horizontal Scroll Bar", "Show Tool Bar When Running"

Check "Show front panel when opened", and "Close Afterward"

Make the window Modal

Un-check Allow close, allow resize, allow minimize

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
Message 2 of 2
(3,261 Views)