Message Boards Message Boards

0
|
5817 Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Palette Editing

Posted 10 years ago

I have a nice little palette. I want to add to my palette. When I open the palette it opens as a palette and not a notebook. This is indeed the correct action for palettes. Understanding that, How do I open my little palette as a notebook such that I can makes changes?

Thank you

POSTED BY: Dave Lubbers
4 Replies

Simpler of course!

POSTED BY: David Reiss

After opening it as a palette, you can use Palette menu - Generate Notebook from Palette to put it in editable form.

POSTED BY: Bruce Miller

I think the question is somewhat different than where to locate and install palettes though that is an important piece of information for some approaches to this question....

Palettes are, in fact, notebooks, but with a different set of notebook option settings than the default notebook that one works in. So, to edit your Palette you need to make some adjustments to these options to make the palette editable so you can modify it and then save it.

Doing some of this possibly involves some more advanced techniques, depending on how you created the original palette. But if the Palette was created using things like CreateWindow[PaletteNotebook[...]] or CreatePalette[...] then the palette differs from a conventional notebook mostly by it's StyleSheet. If this is so, then you can work with it as follows.

First we have to assume that you know the NotebookObject of your original palette assuming that it is open. If so, then its NotebookObject is one of the items listed in

Notebooks[]

Say that that NotebookObject is called nb.

Then you can modify its StyleSheet using

SetOptions[nb, StyleDefinitions -> "Default.nb"]

Now you can work in the palette as you would in any conventional notebook since it is indeed now a conventional notebook.

When you are done, and have adjusted its size, coloring cells margins, and so on to you liking, you now just execute

SetOptions[nb, StyleDefinitions -> "Palette.nb"]

You might also want to execute

NotebookSave[nb]
POSTED BY: David Reiss

You can find more information about making and installing palettes here:

http://reference.wolfram.com/mathematica/tutorial/CreatingPalettes.html

You typically find the current palettes under the two directories, one in the base directory and one in the user base directory. Evaluate the following code to see where these directories are on your computer:

ToFileName[{$UserBaseDirectory, "SystemFiles", "FrontEnd",  "Palettes"}]

ToFileName[{$BaseDirectory, "SystemFiles", "FrontEnd", "Palettes"}]
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract