# Creating a Menu Item and Group

> Source: https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/creating-a-menu-item-and-group

The **Menu Item/Group Definition** dialogue is used to define the properties of a new item or group. It is invoked from the **[Menu Bar Definition](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/menu-bar-definition)** dialogue by clicking the *New Item* or *New Group* toolbar buttons or by right clicking inside the *Item* list box and selecting *New Item* or *New Group*.

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

This dialogue is divided into the following tabbed panels: **[Details](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/creating-a-menu-item-and-group#Mark2)** and **[Attributes](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/creating-a-menu-item-and-group#Mark1)**.

|  |  |
| --- | --- |
| **Details** |  |
| **Item/Group** | \|  \|  \|<br>\| --- \| --- \|<br>\| *Item* \| Item name. A selection character prefixed by an **&** *(ampersand)* is ***mandatory*** in each item or group. When the menu is displayed, the selection character will be underlined, which identifies it as a hot key that, when pressed in conjunction with the Alt key, activates the selection. If the **&** *(ampersand)* is not already present, NOMADS inserts it before the first character.<br>Alt keys cannot be duplicated. If saving an item or group with an Alt key that is currently assigned to an existing item or group, a message will display, and a different Alt key must be selected.<br>As items are added, they are displayed in the *Item* list box in the **[Menu Bar Definition](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/menu-bar-definition)** dialogue. \|<br>\| *Function* \| Logic to be executed when the item is selected. Click the drop-down arrow for a list of selections:<br>*Ignore*<br>No logic to be performed. ***(Default)***<br>*Call*<br>Call a program.<br>*Link*<br>Invoke another panel passing optional arguments.<br>*Jumpto*<br>Process a new panel, passing all variables.<br>*Perform*<br>Perform a program.<br>*Execute*<br>Execute a series of statements separated by semi-colons.<br>*Merge-Jumpto*<br>Process a new panel as a concurrent panel.<br>*Help*<br>Launch Help reference.<br>*End*<br>Terminate panel.<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>\| *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 name 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>For a **Popup Menu** attached to an input control, you can suppress or disable a menu item when that control has no value entered. \|<br>\| *Include Line Separator* \| Check box to apply a separator line below menu item text. \|<br>*(The Merge-Jumpto function was added in PxPlus 2019.)* |
| **Menu Override 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.)* |
| **Item Colors** | ***(NOMADS Only)***<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Background / Text* \| Assign a background and/or text color for an individual menu item. See **[Menu Colors](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/menu-colors)**.<br>Click the drop-down arrow for a list of selections:<br>*Menu Default*<br>Use the color settings for the entire menu set in Menu Colors. See **[Menu Bar Definition](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/menu-bar/menu-bar-definition)**.<br>*System Default*<br>Default colors for the session. Dependent on %NOMADS properties, Library Default settings, Themes and Visual Classes.<br>*Specify Color*<br>Click the Query button to access **[Color Selections](https://manual.pvxplus.com/nomads-graphical-application/appendix/color-selections)**. Setting a specific color on an individual menu item will override all other menu background and text color settings. \|<br>*(The Color Selections Query button and dialog were added in PxPlus 2020.)* |
