DisplayPopupMenu()

语法

DisplayPopupMenu(#Menu, WindowID [, x, y])
概要
Displays a PopupMenu under the current mouse position or at the given screen location.

参数

#Menu The menu to display. It must have been created with CreatePopupMenu() or CreatePopupImageMenu().
WindowID The window with which to associate the popup menu. This value can be obtained with the WindowID() function.
x, y (optional) The location at which the menu should be displayed in screen coordinates. These are coordinates in pixels relative to the upper-left corner of the primary monitor.

If this parameter is not specified, the menu is displayed at the current mouse position.

返回值

无.

Remarks

The popup menu will be hidden again when the user selects an item or clicks somewhere outside of the area of the popup menu.

For an example and a preview image see the CreatePopupMenu() help.

参阅

CreatePopupMenu(), CreatePopupImageMenu()

已支持操作系统

所有

<- DisableMenuItem() - Menu Index - FreeMenu() ->