Make palettes for performing frequently used operations like inserting material, changing styles and modifying the selection.
That Inserts Characters...
Create a palette
Make a palette with buttons that insert characters:
- RawBoxes indicates the low-level representation used in Wolfram Notebooks.
Use the palette
Use the palette to insert a character:
That Inserts Expressions...
Create a palette
Make a palette with buttons that insert expressions:
- Defer prevents an expression from evaluating until it is has been pasted and evaluated with .
- When a button expression contains a selection placeholder (), the selection is inserted in its place when the button is used. Type \[SelectionPlaceholder ] or spl to get a selection placeholder.
- Palette buttons can insert any kind of material, including graphics and images.
Use the palette
Use the palette to build up an expression:
That Modifies the Selection...
Create a palette
Make a palette with a button that changes text to uppercase:
- The expressions returned by NotebookRead from Input and Output cells are box structures. See Low-Level Notebook Structure for more information.
Use the palette
Use the palette to change the selection to uppercase:
Notes
Palette contents can be laid out using typesetting and interface functions such as Row, Column, Grid, Panel and OpenerView.