## 6.1.3.2 How do you customize context menus?
You can arrange, add or hide the elements of the context menu for a plug-in.
## Arrange
To arrange the elements of the context menu for a plug-in, you can do the following:
- Use the buttons Move Up and Move Down .
##  Note
Using the Move Up and Move Down buttons, you can move the elements only inside a node element.
- Use the drag-and-drop to move an element inside or outside a node element.
## Show or hide
To hide or display all the elements of a the context menu for a plug-in, use the Show / Hide all Elements .
To hide or display all the elements of a the context menu or a specific element, select the context menu or element, then right click and use the commands Show all Elements of and Hide all Elements of .
## Add
You can create the following:
- new first-level elements in a context menu,
- inside a first-level element you have created, you can create the following types of sub-elements: menu, menu separator, button, split button, or toggle button.
## How do you do it?
To create or delete elements, use the New Element , New Sub-Element and Delete buttons or the same commands that you access from the context menu in the tree view of the tab.
## What elements can you create?
Here is the list of elements you can create, with their properties (that are explained below).
- Menu: label, image, Activate only on , Hide if not active .
- Menu separator: no properties.
- Button: identifier, label, macro, image, Activate only on , Hide if not active .
- Split button: identifier, label, macro, image, Activate only on , Hide if not active .
- Toggle button: identifier, label, macro (for the action), macro for the state of the button (pressed or not), image, Activate only on , Hide if not active .
## What are the possible properties of the elements you create?
- Label: enter the name of the element as it will appear on the interface.
- Image: choose the image that you want to be displayed next to the label. The images are stored within the profile xml.
- Get Button State: macro that sets the state of the toggle button, pressed or not.
- Macro: see the Macro section here: How do you customize a tab in the Ribbon? [page 230].
- Display ID: see the ID section here: How do you customize a tab in the Ribbon? [page 230].
- Activate only on : see the Activate only on section below.
- Hide if not active : see the Hide if not active section below.
## Activate only on
By default, the element you are creating is active and visible in the context menu where and whenever, meaning in all the situations listed below. Y ou can restrict this. So that the element be active only in some of situations, you need to select the corresponding options, depending on the plug-in you are using:
- When using the Analysis plug-in, you can activate an element only:
- on an Analysis worksheet
- on a data source (whether it is active or not)
- on an active data source
- on an inactive data source
##  Note
When selecting several options, all the criteria need to be met so that the element be activated in the context menu.
##  Note
Using the Microsoft PowerPoint version of Analysis, when you create an element in a context menu, the following options are available in the Activate only on area:
- When in the Analysis context menu: Active Data Source .
## Hide if not active
By default, this option is selected. This means that when an element is not active, it is hidden by default.
However, you may want to always show an element, whether it is active or not. In such a case, you can deselect the option Hide if not active .