# Applying a Popup Menu

> Source: https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/popup-menu/applying-a-popup-menu

Popups can be associated with a specific control via the **[Panel Designer](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/introduction)**. You can also apply a popup menu to the **[Panel Header](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/panel-header/overview)** so that right clicking on any blank area on the panel will launch a popup.

To enable a popup menu for a panel control, select the object for editing. If the control supports popups, a *Popup Menu* design property will be displayed. For example, when creating or editing a Multi-Line control, a *Popup Menu* button displays at the bottom of the **[Multi-Line Properties](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/multi-line-control/multi-line-properties)** dialogue.

## Assign Popup Menu

Select the *Popup Menu* button to access the **Assign Popup Menu** dialogue.

![](https://manual.pvxplus.com/migration-assets/7d79cc0296316074e9bf89d5a101d5807526e65a17572f1be1033c06b4f27fc1.jpg)

This dialogue consists of the following

options:

|  |  |
| --- | --- |
| **Prior Popup** | Logic to process before the popup appears. Click the drop-down arrow for a list of selections:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Ignore* \| No logic to be performed. ***(Default)*** \|<br>\| *Perform* \| Perform a program. \|<br>\| *Call* \| Call a program. \|<br>\| *Execute* \| Execute a series of statements separated by **;** *(semi-colons)*. \|<br>Click the Program Logic button beside the *Perform* or *Call* action to launch the default program editor, which is typically the **[\*IT - Integrated Toolkit](https://manual.pvxplus.com/toolkit1/overview)**. To make **[Ed+](https://manual.pvxplus.com/ed-program-editor)** the default program editor, change the setting for the **[%NOMADS'Program_Editor](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#programeditor)** property to *Ed+*.<br>*(The ability to set Ed+ as the default program editor was added in PxPlus 2023.)*<br>Note:  <br>If a popup menu has been assigned, it can be suppressed under certain conditions by setting the NOMADS [IGNORE_POPUP](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#ignore_popup) reserved variable to a non-zero value. This can be done in the Prior Popup logic.  <br>  <br>*Example:*  <br>  <br>To suppress the popup menu in a grid when the bottom row is clicked, set the Prior Popup logic to Execute and enter the following:  <br>  <br> IF id'currentRow=id'rowshigh THEN IGNORE_POPUP=1  <br>  <br>(The NOMADS reserved variable IGNORE_POPUP was added in PxPlus 2020.) |
| *Panel **or** Program* | Select *Panel* to assign an existing popup menu object; otherwise, select *Program* and enter the absolute or relative path location of a user-supplied program *("program;label")*. Either one may be defined as a *Fixed* value or *Expression*. |
| *Library* | If the *Panel* button is selected, this field shows the current library. To change the library, click the Browse button to look through the directory structure to find the library.<br>Note:  <br>The Library name may be a specific or generic reference. See [Cascading Language Suffixes](https://manual.pvxplus.com/nomads-graphical-application/multilingual-capabilities/cascading-language-suffixes/overview). |
| *Panel* | If the *Panel* button is selected, this field shows the name of the currently selected popup menu. Click the drop-down arrow to select a popup menu from the list.<br>Click the popup button to launch the **[Menu Bar Definition](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/menu-bar-definition)** dialogue to edit attributes of the currently selected popup. This makes changes to the original popup menu library object. If the popup menu name that is entered does not already exist, a new library object (with **P** designation) will then be saved in the current library.<br>Note:  <br>When entering a new popup menu object name, valid characters are: letters (A-Z, a-z); numbers (0-9); ~ (tilde); @ (at symbol); . (period); $ (dollar sign); \_ (underscore); - (dash); + (plus sign). If an invalid character is used, a message will display. |
| *System Popup* | ***(Available Only for Grids and List Boxes Except for Tree View)***<br>Used to assign a system popup menu. Available selections are *Default, On, Off.* See **[List Box and Grid System Popup Menu](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/popup-menu/list-box-and-grid-system-popup-menu)**. |
