Method popupMenu.Show
Overload
Shows the menu and waits until closed.
public int Show(PMFlags flags = 0, POINT? xy = null, RECT? excludeRect = null, AnyWnd owner = default)
Parameters
|
flags (PMFlags)
Enum: ByCaret, ScreenCenter, WindowCenter, Underline, AlignCenterH, AlignRight, AlignCenterV, AlignBottom, AlignRectBottomTop. |
|
xy (POINT?)
Menu position in screen. If |
|
excludeRect (RECT?)
The menu should not overlap this rectangle in screen. |
|
owner (AnyWnd)
Owner window. The menu will be automatically closed when destroying its owner window. |
Returns
|
int
id of the selected item, or 0 if canceled. See also: popupMenu.Result. |
Exceptions
|
InvalidOperationException
The menu is open or is submenu. |