Jump to content

How to get the info after user click close window button


Cool-LV

Recommended Posts

Hi,

How can I get the info/feedback after user click close window button ? and I would like to use Windows' original title bar (don't wanna to make a dummy bar). the goal is that user click close button to close the window, and I want to get this info to ask user, "are you sure to quit out of this application!" thanks @!

Link to comment
How can I get the info/feedback after user click close window button ?

Use the "<This VI>" > "Panel Close?" filter event in an event structure - this is what the help has to say about it:

Generated when the user tries to interactively close the front panel on a VI by selecting the Close item in the File menu or by clicking the close glyph on the window border. LabVIEW ignores the Discard? event data field if you generate this event on a subpanel control.
Link to comment
Use the "<This VI>" > "Panel Close?" filter event in an event structure - this is what the help has to say about it:

Crelf,

Yes, that is what I need. :thumbup: I know there are this event long ago, :D I don't know why I forget it this time. I believed in that I should call API to realize .

Yup, this handle is so easy. thank you !

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.