xtd 0.2.0
Loading...
Searching...
No Matches

◆ show()

void xtd::forms::context_menu::show ( const xtd::forms::control control,
const xtd::drawing::point pos 
)

Displays the shortcut menu at the specified position.

Parameters
controlA xtd::forms::control that specifies the control with which this shortcut menu is associated.
posA xtd::drawing::point that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
Remarks
Typically, a xtd::forms::context_menu is displayed when the user clicks the right mouse button on a control or area of the form that the xtd::forms::context_menu is bound to. You can use this method to manually display the shortcut menu at a specific location and bind it with a specific control. This method does not return until the menu is dismissed.