onClose() Events & Graceful ExitI'm putting together a GUI front-end for a program that I'm writing. I'm doing this by writing a Journal from a JSL script. The GUI opens up several sub-Journals.
What I'm frustrated by is that each Journal, when exited using the red "X" in the top right, is asking the user if they want to save it. With how I'm using these Journals, the user should never be saving the journals - it's only a front end to the main program.
Is there any way to change the default behavior of the red "X" to have it not ask to save? Or is there another way to ensure that each program exits gracefully, without asking to save?
Re: onClose() Events & Graceful ExitAlternatively, use newWindow without the <Re: onClose() Events & Graceful Exit
starting in JMP 14 you can clear the dirty flag in the journal.
xx = newwindow("xx",<<JOURNAL></JOURNAL>
Prior to that you might pre-save the journal in $TEMP to avoid the dialog. Or...
xx<<CLOSEWINDOW></CLOSEWINDOW>
also works without prompting. You might have some success with this:
xx = newwindow("xx",<<JOURNAL></JOURNAL>