popup_menu


Description:

[ Version ( since = "4.17.2" ) ]
public void popup_menu (Menu menu, Widget? widget, Event? trigger_event)

Pops up menu at widget if widget is non-null and if appropriate given the panel position, otherwise pops up menu at pointer.

As a convenience, popup_menu calls register_menu for the menu.

For a custom widget that will be used as a popup menu, use popup_window instead if this widget is a Window, or position_widget.

See also: popup_at_widget and popup_at_pointer.

Parameters:

this

an PanelPlugin.

menu

a Menu.

widget

the Widget to align menu with or null to pop up menu at pointer.

trigger_event

the Event that initiated this request or null if it's the current event.