07-17-2012 03:50 PM
Is there a way to disable a user's ability to exit the window while the program is running. For safety, I want to force the user to terminate all of the outputs before quitting the program.
Solved! Go to Solution.
07-17-2012 03:55 PM
07-17-2012 04:06 PM
You may also want to include Application Instance Close? too.
07-17-2012 04:12 PM
07-17-2012 04:15 PM
@ben64 wrote:
You can also go to File -> VI Properties -> Customize -> uncheck Window has Title bar.
Ben64
Can this be set during run-time? It sounds like the OP wants to enable closing of the close window once the shutdown process has happened.
07-17-2012 04:22 PM
You're right, it cannot be set during run-time. Usually I do as specify in a previous post: filter the panel close event, make sure everything stop properly and then exit the application. If you don't show the title bar you can provide a stop button that do the same thing (I usually do this for a vi loaded in a subpanel).
Ben64
07-17-2012 04:40 PM
@ben64 wrote:
You're right, it cannot be set during run-time. Usually I do as specify in a previous post: filter the panel close event, make sure everything stop properly and then exit the application. If you don't show the title bar you can provide a stop button that do the same thing (I usually do this for a vi loaded in a subpanel).
Ben64
I generally do it the same way. Only I add the Aplication Instance Close? and a user exit event. I have the panel close and application close fire the exit event which has all the cleanup code. That way I have one means of actually exiting the application and I can be assured that the cleanup code has been executed.
07-17-2012 04:45 PM
worked perfectly...thanks!