Repost: Q: How to identify originator of window.close()

  • Thread starter Thread starter brewman
  • Start date Start date
B

brewman

I asked this question last week, but received no reply so I'll try one
more time. It may be that there is no good answer.

If you have an application which overrides the onClosing event handler
how can the app determine whether the event was caused by the user
selecting the close control ('X') vs something like a system shutdown?

The sender object passed through to the event handler indicates the
event was generated by this.form in both cases. Perhaps there's a
flag set somewhere which indicates a shutdown is imminent?

thanks for any help,
Bruce
 
Back
Top