AddPalette - Maple Help

# Online Help

###### All Products    Maple    MapleSim

DocumentTools

 AddPalette
 add a custom Snippets palette to the palette dock

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

Parameters

 palette_name - string ; the name of the custom Snippets palette pos - (optional) "top" or "bottom" ; where to place the new palette in the dock (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 palette dock in the left pane of the Maple window.  The palette can be placed either at the top (default) or at the bottom of the dock.
 • 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, such as by using the View > Palettes menu.  For more information on arranging palettes, see the Arrange Palettes help page.
 • 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{position}="bottom",\mathrm{store}\right)$
 > $\mathrm{RemovePalette}\left("My first palette"\right)$

Compatibility

 • The DocumentTools[AddPalette] command was introduced in Maple 16.
 • For more information on Maple 16 changes, see Updates in Maple 16.

 See Also