Hi,
I have a window with no close or cancel buttons. It relies totally on ESC and the [X] Close icon in upper right corner.
This window allows the user to edit some text, and I would like that both pressing ESC and pressing Close icon caused a confirm box to appear asking the user if (s)he wants to close even though contents isnt saved.
In other words, I need to be called prior to closing the window and to be able to stop window closing if desired.
But…. I cannot find a -‘Closing’ event, only a ‘Closed’ event
What is the correct way to handle this? Your window event demo doesn’t have the answer.