I am trying to make a program where when the X button is clicked, the user is prompted Would you like to save before quitting? Save, Dont Save, Cancel.
The problem is, I cant figure out how to cancel closing the window. I tried overriding the exit function, but no matter what I try, the X always closes the program when clicked.
How do I do the cancel option?
1 Like
Try looking here:
https://processing.org/discourse/beta/num_1244576974.html
2 Likes
Thanks! That should do the trick.
1 Like