# Menu Link

> Source: https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/menu-link

The **Menu Link** feature is used to incorporate an existing menu as part of another menu bar or popup menu, which provides several advantages:

- A set of standard menus could be stored (and maintained) together in a library of their own for reusability - deploy these on your menu via Menu Link.
- If you implement **[NOMADS Security](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/security-manager/overview)**, you can simply omit the menu from the library where a user should be restricted from viewing it - a link to a menu that does not exist on the system does not error.
- You may want to reuse menus that appear in another library.

The link can be to a **[Popup Menu](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/popup-menu/overview)** or to a panel containing a **[Menu Bar](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/overview)** definition.

## Menu Link Definition

In the **[Menu Bar Definition](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/menu-bar-definition)** dialogue, click the *Menu Link* button to invoke **Menu Link Definition**.

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

This dialogue is divided into two tabbed panels for defining the properties of a menu link: **[Details](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/menu-link#details)** and **[Attributes](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/menu-link#attributes)**.

|  |  |
| --- | --- |
| **Details** |  |
| **Menu Link** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Item* \| Item name. A prefixed ampersand is mandatory. \|<br>\| *Item State* \| Initial state of the menu item at run time. Click the drop-down arrow for a list of selections:<br>*Show Item*<br>Displays the item text as listed.<br>*Suppress Item*<br>Removes the item from the menu bar.<br>*Disable Item*<br>Displays the item but functionality is disabled. \|<br>\| *Fixed **or** Expression* \| *Fixed*<br>Apply Library, Panel values listed in fields *below.*<br>*Expression*<br>Apply string variable or expression. \|<br>\| *Library* \| If *Fixed* is selected, this field shows the current library. Click the Browse button to change libraries.<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). \|<br>\| *Panel* \| Click the drop-down arrow to select a popup menu or panel object from the list. \| |
| **Override Menu Options** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Function* \| Override logic to be executed on menu build. Click the drop-down arrow for a list of selections:<br>*Ignore*<br>No logic to be performed. ***(Default)***<br>*Perform*<br>Perform a program.<br>*Execute*<br>Execute a series of statements separated by semi-colons.<br>See **[Menu Override Variables](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/menu-override-variables)**.<br>Click the Program Logic button beside the *Perform* 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.)* \| |
| **Attributes** |  |
| **Bitmaps** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Normal* \| Assign a bitmap that will appear to the left of the text when the menu is drawn. Can be a *Fixed* value or string *Expression*. Click the Bitmap Library button to select a bitmap. If specifying an external image, see **Note** below. \|<br>\| *Checked* \| Assign a bitmap that will appear to the left of the text when the menu is drawn. Can be a *Fixed* value or string *Expression*. Click the Bitmap Library button to select a bitmap. If specifying an external image, see **Note** below. \|<br>Bitmap/Image transparency options can also be applied to internal and external images:<br>\|  \|  \|  \|<br>\| --- \| --- \| --- \|<br>\|  \| **T** \| Use upper leftmost pixel color. \|<br>\|  \| **G** \| Use Light Gray color RGB: 192,192,192. \|<br>\|  \| **N** \| No transparency. (Allows override for "!" bitmaps, which always imply Light Gray transparency.) \|<br>Note:  <br>If specifying an external image, set the background color of the image to use the Light Gray color RGB 192,192,192 with the G transparency option; otherwise, the background color will be visible.<br>*(The ability to enter an expression for a bitmap was added in PxPlus 2019.)* |
| **Text Background Color** | Assign a text background color. Click the drop-down arrow for a list of selections:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Menu Default* \| Indicates use of the default color settings for the entire menu. \|<br>\| *System Default* \| Windows system color. \|<br>\| *Specify Color* \| Click the Query button to access **[Color Selections](https://manual.pvxplus.com/nomads-graphical-application/appendix/color-selections)**. \|<br>See **[Menu Colors](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/menu-colors)**.<br>*(The Color Selections Query button and dialog were added in PxPlus 2020.)* |
