PopupContextMenu Method
- Last UpdatedNov 06, 2025
- 1 minute read
The PopupContextMenu() method uses the PopupMenu class to display a context menu based on the array of strings passed to it.
Parameters
- menuParent
- Required. Holds the control to which the menu is attached.
- point
- Required. Holds the location at which to display the menu.
- menuItems
- Required. Holds an array of strings representing the menu choices. If a menu item has an asterisk (*) appended to the end, the menu choice is disabled. If a menu item has a tilde (~) appended to the end, the menu choice is hidden.
Return Value
Returns the index of the selected menu item, or -1 if no choice was made.