Subscribe Bookmark RSS Feed

How do I intercept a window close event?

laisteve17

Occasional Contributor

Joined:

Jun 15, 2017

I'm building an app and I want to prevent the window from being closed if the user presses "X" to close the window. To my knowledge, "On Close" only allows me to handle what goes on when the window is closed. I can't cancel the window close event.

Please help me find documentation or a solution to this. Thanks in advance!