0
$\begingroup$

As part of a package I am developing, I am programmatically generating palettes to enter symbols using the CreatePalette function. Because those symbols change completely from application to application, I never have a need to save that palette to disk. Is there a way to set up the palette so that upon closing it, I never get the dialog box asking if I want to save it?

Minimal example:

CreatePalette[
   Column[PasteButton@@@{{Symbola,a},{Symbolb,b},{Symbolc,c}}],
   WindowTitle -> "Example"];

To get the behavior I am trying to eliminate, move the palette from its original location and then click the x to close it.

$\endgroup$
  • 3
    $\begingroup$ Add Saveable -> False? $\endgroup$ – Carl Woll May 16 at 20:47
  • $\begingroup$ Beautiful, thank you! I figured there would be a simple option, but for some reason was unable to find it. $\endgroup$ – Kevin Ausman May 16 at 20:55
  • 1
    $\begingroup$ @KevinAusman you can also add System`ClosingSaveDialog->False if you'd like to retain Saveable (e.g. for the {"MenuCommand", "Save"} event binding) but not have it ask you. $\endgroup$ – b3m2a1 May 16 at 21:00
  • $\begingroup$ You might find this answer helpful. $\endgroup$ – m_goldberg May 17 at 0:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.