Arbortext Command Language > Functions by Alphabetical Listing > menu_popup
  
menu_popup
menu_popup (menu[, window[, geometry]])
This function posts the shortcut menu named menu in the window containing the current document or in a XUI dialog box. menu_popup returns 1 if the menu was posted, or 0 if no such shortcut menu exists. This function can be mapped to a button or key press. Typically, the right mouse button is used to post shortcut menus.
menu — The name of a shortcut menu defined within a menu configuration file. If window is specified and is the window ID of a XUI dialog box, menu may also be the XUI ID of a context or dropdown menu defined within the dialog box. Any ACL event dispatched for this menu can be processed by adding an ACL event callback. For more details, refer to the XUI documentation in the Customizer's Guide.
window — Optional. Specifies the ID of the parent window.
geometry — Optional. Specifies the location for posting the menu. The value of geometry takes the form +X+Y
For example:
+200+100
Where X is the horizontal screen coordinate of the upper-left corner of the control, and Y is the vertical screen coordinate of the upper-left corner of the control.
Related Topics
dlgitem_get function