CancelClose - appQuitting always false

I’m trying to cancel the closing of my application windows based on the appQuitting parameter of the CancelClose event. However, appQuitting is always false even from the main window of the application. Is there something that I’m missing?

macOS? Set AutoQuit=True :wink:

Sorry for not including that. It is Windows but setting AutoQuit doesn’t change the parameter either.

I think you misunderstand the purpose of that parameter. appQuiting answers the question, “Am I here because the window is being closed, or because the Quit command was issued and the entire app needs to close.” In other words, it acts the opposite of what you intend.

Thank you!