DocumentTools - Maple Programming Help

DocumentTools

 add a custom Snippets palette to a palette pane

 Calling Sequence AddPalette(palette_name, location=loc, position=pos, store=st)

Parameters

 palette_name - string ; the name of the custom Snippets palette loc - (optional) "left" or "right" ; the pane in which to insert the new palette (default: "left") pos - (optional) "top" or "bottom" ; where to place the new palette in the pane (default: "top") st - (optional)  truefalse  ; whether the palette should be reloaded in subsequent Maple sessions (default: false)

Description

 • The AddPalette function adds a custom Snippets palette to the left (default) or right palette pane.  The palette can be placed either at the top (default) or at the bottom of the selected pane.
 • If the store option is given as store=true (or as just store), the palette will be added to the set of palettes which are available in subsequent Maple sessions.  By default, Snippets palettes are removed when the Maple session ends and are not restored in subsequent sessions.
 • Snippets palettes can be manipulated just as the built-in palettes are by using the Arrange Palettes dialog (available from the View > Palettes menu).
 • To add entries to a Snippets palette, use the DocumentTools[AddPaletteEntry] command.
 • To remove a Snippets palette, use the DocumentTools[RemovePalette] command.

Examples

 > $\mathrm{with}\left(\mathrm{DocumentTools}\right):$
 > $\mathrm{AddPalette}\left("My first palette"\right)$
 > $\mathrm{AddPalette}\left("My second palette",\mathrm{location}="right",\mathrm{position}="top",\mathrm{store}\right)$
 > $\mathrm{RemovePalette}\left("My first palette"\right)$

Compatibility

 • The DocumentTools[AddPalette] command was introduced in Maple 16.