03-23-2007 08:14 AM
03-23-2007 08:41 AM
The "Panel Close?" event is called a Filter Event. The question mark after the name signifies it as a Filter Event. Filter events let you throw event away or handle them differently.
Your assumption on what it does is correct. If you wire a True to the Discard terminal, the user will not be able to close the window by clicking the normal "X" window button in the upper right of the Window. You can use this function to actually allow the user to click the "X" window button to close an application and instead of the window just closing, you can discard the close and run your normal shutdown code and then programatically close the window.
Ed

Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.