I need under some circumstances notify and ask for confirmation to finish when closing the window
You can achieve this by overriding the systemRequestedQuit method to prompt for confirmation before closing.
https://docs.juce.com/develop/classJUCEApplication.html#a8e9b08200268216a791326635ec9321c
1 Like
Thanks. Does it open the native OS confirmation window?
No, but you can create the native dialog with this class inside the previously mentioned method:
https://docs.juce.com/master/classNativeMessageBox.html#details
And here’s an example of how it can be used:
I hope this helps.
1 Like
