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

Panel Close Event (Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Event for VI.

Generated when the user tries to interactively close the front panel of a VI by selecting the Close item in the File menu or by clicking the close glyph on the window border. The Panel Close event is a notify event.

If a user closes the front panel of a VI that is not being called as a subVI and does not have any open references, LabVIEW aborts the VI. To ensure a Panel Close event case executes completely, be sure the application opens a reference to the VI before a user can close the front panel.

Caution  Do not use the Panel Close notify event for important shutdown code unless you have taken steps to ensure that the VI does not abort when the panel closes. Alternatively, you can use the Panel Close? filter event, which occurs before the panel actually closes.

An event case configured to handle a notify event cannot affect if or how LabVIEW processes a user interaction. If you want to modify how LabVIEW processes a user interaction, use the Panel Close? filter event.

Note  LabVIEW cannot generate a Panel Close event for a VI being viewed or controlled remotely. If you are viewing or controlling a VI remotely, LabVIEW can generate events only for controls, not for a VI or the entire application.

Event Data Fields

NameDescription
SourceSource of the event.
0LabVIEW UI
1ActiveX
2.NET
25User Event
nOther
TypeType of event that occurred, such as Mouse Down, Value Change, Timeout, and so on.
TimeValue of the millisecond timer when the event occurred.
VIRefReference to the VI on which this event occurred.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit