Jump to content

Disable or modify close button (red X) at top right of window?


Recommended Posts

Posted

I've had a request to disable or modify the RED X at top right of MS Window for a LabVIEW program.

Everyone here knows to ONLY use File->Exit to quit from LabVIEW. Sometimes, though a harried operator on a PC with plural windows will accidentally click that RED X thinking it's the overlaying ap's window. This, of course, wreaks havoc on the test underway. Would be nice to make that impossible, or at least doubly hard.

So...is there a way to do that? Or alternately, to cause an ARE YOU SURE? intermediary window?

TIA,

Gan

Posted

There is also the option in VI Properties->Window Appearance to disable "Allow use to close window". My personal preference is to use the Panel Close? event as asbo has already mentioned.

  • Like 1
Posted

I prefer to just disable the X using the VI Properties... less code on diagram to have to worry about. And the user doesn't have a useless [X] button to keep clicking on that doesn't do anything. Unless, of course, you're going to actually add code so that the [X] button causes Exit.

  • Like 1
Posted

Aye, typically I wouldn't disable it altogether. It might be conditionally disabled during a specific action or present a prompt tied to a proper shutdown procedure instead.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.